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
const scripts = [ | |
'https://some-cdn.com/file.js', | |
'js/file1.min.js', | |
'js/file1.min.js', | |
]; | |
scripts.forEach(file => { | |
const script = document.body.appendChild(document.createElement('script')); | |
script.async = false; | |
script.src = file; |
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
(function($) { | |
var result = $('#result'); | |
var base = $('#base'); | |
var list = $('#list'); | |
$('#calc').click(function() { | |
var baseVal = base.val(); | |
var px = list.val().split(','); | |
var html = []; | |
$.each(px, function(i, v) { | |
var px = parseInt(v); |
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
/** | |
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
/** | |
* JavaScript behavior to allow selected tab to be remained after save or page reload | |
* keeping state in sessionStorage with better handling of multiple tab widgets per page | |
* and not saving the state if there is no id in the url (like on the CREATE page of content) | |
*/ |