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 importJs(jsurl, fCallback, fError){ | |
if (typeof(fCallback) != "function") fCallback = new Function(); | |
if (typeof(fError) != "function") fError = new Function(); | |
var oScriptEl, oTimeoutHDL, oHead; | |
oScriptEl = document.createElement("script"); | |
oScriptEl.type = "text/javascript"; | |
oScriptEl.language = "javascript"; | |
oScriptEl.src = jsurl; | |
oScriptEl.onreadystatechange = doCallback; |
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 extendDeep() { | |
var target = arguments[0] || {}; | |
var arrs = slice.call(arguments, 1); | |
var len = arrs.length; | |
var copyIsArr; | |
for (var i = 0; i < len; i++) { | |
var arr = arrs[i]; | |
for (var name in arr) { | |
var src = target[name]; |
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 extend() { | |
var target = arguments[0] || {}; | |
var arrs = slice.call(arguments, 1); | |
var len = arrs.length; | |
for (var i = 0; i < len; i++) { | |
var arr = arrs[i]; | |
for (var name in arr) { | |
target[name] = arr[name]; | |
} |
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 getQueryString(name) { | |
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); | |
var r = window.location.search.substr(1).match(reg); | |
if (r != null) return unescape(r[2]); return null; | |
} |
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 addEvent(element, event, callback) { | |
if (element.addEventListener) { | |
element.addEventListener(event, callback, false) | |
} else if (element.attachEvent) { | |
element.attachEvent('on' + event, callback); | |
} else { | |
element['on' + event] = callback; | |
} | |
} |
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
/*! | |
* Grunt | |
* $ npm install grunt-contrib-uglify grunt-autoprefixer grunt-contrib-cssmin grunt-contrib-imagemin grunt-contrib-sass grunt-contrib-watch grunt-contrib-concat grunt-contrib-clean grunt-contrib-jshint grunt-notify --save-dev | |
*/ | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
// Sass |
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
{"lastUpload":"2020-05-27T03:59:33.528Z","extensionVersion":"v3.4.3"} |
OlderNewer