Pages

How to include JavaScript in a specific forum page? - Pages

How to include JavaScript in a specific forum page?

by odf » Fri Aug 30, 2019 12:30 pm

I can add this piece of code

Code: Select all

<!doctype html>
<html>
  <head>
<meta name=viewport content="width=device-width,initial-scale=1">  
<meta charset="utf-8"/>
<title> </title>
  </head>
  <body>
<script src="https://cdn.geogebra.org/apps/deployggb.js"></script>
<div id="ggb-element"></div> 
<script>  
    var ggbApp = new GGBApplet({"appName": "graphing", "width": 800, "height": 600, "showToolBar": true, "showAlgebraInput": true, "showMenuBar": true }, true);
    window.addEventListener("load", function() { 
        ggbApp.inject('ggb-element');
    });
</script>
  </body>
</html>

on the phpBB forum in the overall_footer by using {$SCRIPTS} placeholder and <!-- INCLUDE geogebra.html -->; where geogebra.html is the file containing this piece of code, placed in the same folder as overall_footer. It works well by displaying a calculator and a graphing tool at the forum footer.

My question is how can I place such a graphing tool/calculator just in one page of the forum or at least in a specific subforum?

odf
odf
Registered User
Posts: 130
Joined: Sun Jan 22, 2017 8:55 pm
Contact:

Re: How to include JavaScript in a specific forum page?

by VSE » Fri Aug 30, 2019 5:48 pm

This forum is for support of the Pages extension. Please post your question in the phpBB support or coding forums.
Dictated but not read.
Official phpBB Extensions My Extensions & MODs
Please do not PM me for support.
User avatar
VSE
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 4991
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman
Contact: