This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Pure CSS accordion | |
* | |
* Copyright (C) 2017 Stephen T. Robbins | |
* License: MIT : https://choosealicense.com/licenses/mit/ | |
* : CC0 : https://creativecommons.org/publicdomain/zero/1.0/ | |
*/ | |
/* -- Known Issues, Suggested Updates/Improvements, and Notices -- | |
NONE | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** includeJS() appends a JavaScript file to an element of the open document. | |
* @param jsPath -- string - the path to the JavaScript file. | |
* @param docLocName -- string - optional - element tag or ID name; | |
* defaults to "head". | |
* @param docLocType -- string - optional - type of element name, "tag" or "id"; | |
* defaults to "tag". | |
* @param docLocNum -- integer - optional - number of element with tag name; | |
* defaults to 0. | |
*/ | |
function includeJS(jsPath, docLocName, docLocType, docLocNum) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://css-tricks.com/snippets/javascript/async-script-loader-with-callback/ | |
var Loader = function () { }; | |
Loader.prototype = { | |
require: function (scriptURLs, callback) { | |
this.loadCount = 0; | |
this.totalRequired = scriptURLs.length; | |
this.callback = callback; | |
for (var i = 0; i < scriptURLs.length; i++) { | |
this.writeScript(scriptURLs[i]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<meta charset="UTF-8"> | |
<title>Page Title</title> | |
<meta name="description" content="A description of the webpage."> | |
<!-- ***** INCLUDED RESOURCES ***** --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> |