preparations for rewrite
This commit is contained in:
2317
web/js/bootstrap.js
vendored
Normal file
2317
web/js/bootstrap.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
web/js/bootstrap.min.js
vendored
Normal file
7
web/js/bootstrap.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1032
web/js/clean-blog.js
Normal file
1032
web/js/clean-blog.js
Normal file
File diff suppressed because it is too large
Load Diff
7
web/js/clean-blog.min.js
vendored
Normal file
7
web/js/clean-blog.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
30
web/js/http2pic.js
Normal file
30
web/js/http2pic.js
Normal file
@ -0,0 +1,30 @@
|
||||
$(function() {
|
||||
function web2pic(url)
|
||||
{
|
||||
$("#showcase_button").attr("disabled","true");
|
||||
var urlenc = encodeURIComponent(url);
|
||||
var imageURL = "api.php?js=no&cache=1&viewport=1200x330&url="+urlenc;
|
||||
//$("#intro-header").css('background-image', 'url(\'/img/loading.gif\')');
|
||||
|
||||
$("#loading").show();
|
||||
|
||||
console.log(imageURL);
|
||||
|
||||
$("#preloader").attr('src',imageURL);
|
||||
$("#preloader").load(function() {
|
||||
$("#intro-header").css('background-image', 'url(\'' + imageURL + '\')');
|
||||
$("#loading").hide();
|
||||
$("#showcase_button").removeAttr("disabled");
|
||||
});
|
||||
}
|
||||
|
||||
$("#showcase_button").click(function() {
|
||||
web2pic($('#showcase_url').val());
|
||||
});
|
||||
|
||||
$("#showcase_url").keypress(function(e) {
|
||||
if(e.keyCode === 13) {
|
||||
web2pic($("#showcase_url").val());
|
||||
}
|
||||
});
|
||||
});
|
9190
web/js/jquery.js
vendored
Normal file
9190
web/js/jquery.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
5
web/js/jquery.min.js
vendored
Normal file
5
web/js/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user