5 examples of 'download jquery.min.js bootstrap' in JavaScript

Every line of 'download jquery.min.js bootstrap' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
200function downloadCSS(a, style) {
201
202 var options = $minify.prop("checked") ? {compress: true} : {};
203
204 $.less.getCSS(style.less, $.extend(options, {id: style.name, variables: style.variables})).done(function(css) {
205
206 if (style.fonts) {
207 css = style.fonts + "\n" + css;
208 }
209
210 if ($rtl) {
211 css = $.rtl.convert2RTL(css);
212 }
213
214 css = css.replace(/http(.+?)\/fonts\/?/g, function(){
215 return "../fonts/";
216 });
217
218 if ($download) {
219 a.attr("href", $url.createObjectURL(new Blob([css], {type: "application/force-download"})));
220 } else {
221 $("h2", $modal).text("CSS Code");
222 $("textarea", $modal).val(css);
223 }
224 });
225}
120function download(url) {
121 torrents[url] = true;
122 // If the torrent already exists, kick off the downloads of the files, as this
123 // won't happen naturally when the torrent is added (because it already exists!)
124 if(btapp.has('torrent')) {
125 if(btapp.get('torrent').each(function(torrent) {
126 if(torrent.has('properties')) {
127 if(torrent.get('properties').get('download_url') === url) {
128 download_torrent_files(torrent.get('properties'));
129 return;
130 }
131 }
132 }));
133 }
134}
30function jcl_download(cb) {
31 console.log('Downloading the Java class library (big download, may take a while)');
32 process.chdir('vendor');
33 // Ubuntu (security) repo actual on 24.02.2013
34 exec('mktemp -d jdk-download.XXX', function(err, stdout, stderr){
35 DOWNLOAD_DIR = stdout.trim();
36 process.chdir(DOWNLOAD_DIR);
37 var DEBS_DOMAIN="http://security.ubuntu.com/ubuntu/pool/main/o/openjdk-6";
38 var DEBS = [
39 "openjdk-6-jre-headless_6b27-1.12.6-1ubuntu0.12.04.4_i386.deb",
40 "openjdk-6-jdk_6b27-1.12.6-1ubuntu0.12.04.4_i386.deb",
41 "openjdk-6-jre-lib_6b27-1.12.6-1ubuntu0.12.04.4_all.deb"
42 ];
43 var request = require('request');
44 async.each(DEBS, function(deb, cb2){
45 var url = DEBS_DOMAIN + '/' + deb;
46 var file = fs.createWriteStream(deb);
47 request(url).pipe(file);
48 file.on('finish', function(){
49 file.close();
50 exec('ar p '+deb+' data.tar.gz | tar zx', function(err, stdout, stderr){
51 return cb2(err);
52 });
53 });
54 }, function(err){
55 process.chdir('..');
56 return cb(err);
57 });
58 });
59}
18function _binDownload() {
19 const data = require("./binDownload");
20
21 _binDownload = function () {
22 return data;
23 };
24
25 return data;
26}
17function loadjQuery(url, callback) {
18 var script_tag = document.createElement('script');
19 script_tag.setAttribute("src", url)
20 script_tag.onload = callback; // Run callback once jQuery has loaded
21 script_tag.onreadystatechange = function () { // Same thing but for IE... bad for IE 10, it supports all
22 if (this.readyState == 'complete' || this.readyState == 'loaded') {callback();}
23 }
24 script_tag.onerror = function() {
25 loadjQuery("http://code.jquery.com/jquery-1.8.2.min.js", main);
26 }
27 document.getElementsByTagName("head")[0].appendChild(script_tag);
28}

Related snippets