Skip to content

Commit

Permalink
Remove uneccessary type="text/javascript" attrs
Browse files Browse the repository at this point in the history
Not needed in HTML5
  • Loading branch information
ascholerChemeketa committed Jul 21, 2021
1 parent 9c2e239 commit 1685da6
Show file tree
Hide file tree
Showing 16 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
crossorigin="anonymous"
/>

<script type="text/javascript">
<script>
eBookConfig = {};

eBookConfig.useRunestoneServices = false;
Expand Down
4 changes: 2 additions & 2 deletions runestone/animation/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def setup(app):
<button onclick="%(divid)s_anim.backward()">Step Backward</button>
<button onclick="%(divid)s_anim.end()">End</button>
<script type="text/javascript">
<script>
%(divid)s_init = function(divid)
{
var a = new Animator(new %(model)s(), new %(viewer)s(), divid)
Expand All @@ -52,7 +52,7 @@ def setup(app):
</div>
"""

SCRIPTTAG = """<script type="text/javascript" src="../_static/%s"></script>\n"""
SCRIPTTAG = """<script src="../_static/%s"></script>\n"""


class Animation(RunestoneIdDirective):
Expand Down
4 changes: 2 additions & 2 deletions runestone/animation/animationrefactor.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>

<head>
<script type "text/javascript" src="animationrefactor.js"></script>
<script src="animationrefactor.js"></script>

<html>
<body onload="">
Expand All @@ -17,7 +17,7 @@
<button onclick="ancan_anim.backward()">Step Backward</button>
<button onclick="ancan_anim.end()">End</button>
</div>
<script type="text/javascript">
<script>
init1 = function(divid)
{
var a = new Animator(new SortModel(), new BarViewer(), divid)
Expand Down
12 changes: 6 additions & 6 deletions runestone/animation/chart.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<html>
<head>
<title>charts</title>
<!-- <script type="text/javascript" src="https://www.google.com/jsapi"></script> -->
<!-- <script type="text/javascript" src="chart.js"></script> -->
<!-- <script src="https://www.google.com/jsapi"></script> -->
<!-- <script src="chart.js"></script> -->

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="jqchart/jquery.gchart.js"></script>
<script type="text/javascript" src="jqchart/jquery.gchart.graphviz.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script src="jqchart/jquery.gchart.js"></script>
<script src="jqchart/jquery.gchart.graphviz.js"></script>
<style>
#visualization { width: 800px; height: 400px; }
</style>

</head>
<body>
<div id="visualization"></div>
<script type="text/javascript">
<script>
// $("#visualization").gchart({type: 'graphviz', series: [$.gchart.series([20, 50, 30])]});
// label: '<f0> left | <f1> middle | <f2> right'

Expand Down
4 changes: 2 additions & 2 deletions runestone/animation/jqchart/gChartBasic.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<style type="text/css">
#basicGChart { width: 450px; height: 300px }
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" src="jquery.gchart.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script src="jquery.gchart.js"></script>
<script>
document.addEventListener('load', (event) => {
$(function () {
Expand Down
14 changes: 7 additions & 7 deletions runestone/animation/simpletree.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<html>

<head>
<script type="text/javascript" src="animationrefactor.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="jqchart/jquery.gchart.js"></script>
<script type="text/javascript" src="jqchart/jquery.gchart.graphviz.js"></script>
<script type="text/javascript" src="animationrefactor.js"></script>
<script type="text/javascript" src="simpletree.js"></script>
<script src="animationrefactor.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script src="jqchart/jquery.gchart.js"></script>
<script src="jqchart/jquery.gchart.graphviz.js"></script>
<script src="animationrefactor.js"></script>
<script src="simpletree.js"></script>
</head>


Expand All @@ -29,7 +29,7 @@
<button onclick="ancan_anim.backward()">Step Backward</button>
<button onclick="ancan_anim.end()">End</button>
</div>
<script type="text/javascript">
<script>
init1 = function(divid)
{
var a = new Animator(new SimpleTreeModel(), new TreeViewer(), divid)
Expand Down
6 changes: 3 additions & 3 deletions runestone/animation/sortingbase.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!DOCTYPE html>

<head>
<script type="text/javascript" src="sortmodels.js"></script>
<script type="text/javascript" src="sortviewers.js"></script>
<script type="text/javascript" src="animationbase.js"></script>
<script src="sortmodels.js"></script>
<script src="sortviewers.js"></script>
<script src="animationbase.js"></script>


<html>
Expand Down
2 changes: 1 addition & 1 deletion runestone/animation/sortingdemo.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>

<head>
<script type "text/javascript" src="sortingdemo.js"></script>
<script src="sortingdemo.js"></script>

<html>
<body onload="">
Expand Down
2 changes: 1 addition & 1 deletion runestone/animation/sortingpackage.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>

<head>
<script type "text/javascript" src="sortingpackage.js"></script>
<script src="sortingpackage.js"></script>

<html>
<body onload="">
Expand Down
12 changes: 6 additions & 6 deletions runestone/blockly/blockly.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ def __init__(self, content, **kwargs):
START = """
<html>
<head>
<script src='blockly_compressed.js' type="text/javascript"> </script>
<script src='blocks_compressed.js' type="text/javascript"> </script>
<script src='javascript_compressed.js' type="text/javascript"> </script>
<script src='python_compressed.js' type="text/javascript"> </script>
<script src='msg/js/en.js' type="text/javascript"> </script>
<script src='blockly_compressed.js'> </script>
<script src='blocks_compressed.js'> </script>
<script src='javascript_compressed.js'> </script>
<script src='python_compressed.js'> </script>
<script src='msg/js/en.js'> </script>
<link rel="stylesheet" href="bootstrap-3.4.1/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="video.css" type="text/css" />
<script type="text/javascript">
<script>
// Get the objects we need to do logging from the parent frame.
// This seems better than reloading all of jQuery and bookfuncs into the frame. But
// Makes this a bit more dependent on the Runestone Environment.
Expand Down
2 changes: 1 addition & 1 deletion runestone/codelens/visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def setup(app):


DATA = """
<script type="text/javascript">
<script>
var %(divid)s_vis;
if (allTraceData === undefined) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
{%- block extrahead %}
<link rel="shortcut icon" href="/{{appname}}/static/favicon.ico" type="image/ico" />

<script type="text/javascript">
<script>
eBookConfig = {};
{% if dynamic_pages == 'True' %}
{% raw %}
Expand Down Expand Up @@ -354,13 +354,13 @@
{% if dynamic_pages == 'True' %}
{% raw %}
{{ if request.application == 'runestone':}}
<script type="text/javascript">
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{ =settings.google_ga }}']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
var ga = document.createElement('script'); ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<li class="divider-vertical"></li>
{%- endif %}

<script type="text/javascript">
<script>
opts = {'placement':'bottom',
'selector': '',
'delay': { show: 100, hide: 50}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

{%- endif %}

<script type="text/javascript">
<script>
document.addEventListener('load', (event) => {
$('#relations-prev').tooltip({'placement':'right', 'selector': '', 'delay': { show: 100, hide: 50}});
$('#relations-next').tooltip({'placement':'left', 'selector': '', 'delay': { show: 100, hide: 50}});
Expand Down
2 changes: 1 addition & 1 deletion runestone/disqus/disqus.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


DISQUS_BOX = """\
<script type="text/javascript">
<script>
function %(identifier)s_disqus(source) {
if (window.DISQUS) {
Expand Down
2 changes: 1 addition & 1 deletion runestone/webgldemo/webgldemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ def run(self):
# Run the show/hide function on each element to get it into the correct
# visibility and width
SHOW_HIDE_SCRIPT = """
<script type='text/javascript'>
<script>
%(divid)s_directive.show_webgl(\"%(divid)s_show_code\",1);
%(divid)s_directive.show_webgl(\"%(divid)s_show_canvas\",2);
%(divid)s_directive.show_webgl(\"%(divid)s_show_info\",3);
Expand Down

0 comments on commit 1685da6

Please sign in to comment.