aboutsummaryrefslogtreecommitdiff
path: root/js/functions.js
diff options
context:
space:
mode:
authorroot2014-10-29 00:57:44 +0100
committerroot2014-10-29 00:57:44 +0100
commit0785d137a8e8afa935389ef85d4ca6cc9c7a4bca (patch)
treec2ba2ade7f2c854ae9d905e90fa580a67d9f289f /js/functions.js
parent44870defdcddbfceede437950fd9e3342f84ebf0 (diff)
downloadjungegemeinde-0785d137a8e8afa935389ef85d4ca6cc9c7a4bca.tar.gz
CDN support is stable.
Diffstat (limited to 'js/functions.js')
-rw-r--r--js/functions.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/functions.js b/js/functions.js
index 6a460ad..6b0dcf4 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -1,3 +1,5 @@
+var cdn = "https://secure.iamfabulous.de";
+
$('#btn-send').click(function () {
var btn = $(this);
btn.button('loading');
@@ -9,13 +11,13 @@ $('.modal').draggable({
handle: ".modal-header"
});
function loadFancy(){
- document.getElementById("loader").style.backgroundImage="url('/img/loading.gif')";
+ document.getElementById("loader").style.backgroundImage="url('" +cdn + "/img/loading.gif')";
document.getElementById("loader").style.visibility="visible";
document.getElementById("loader-bg").style.visibility="visible";
var eyecancer = document.createElement("script");
eyecancer.type = "text/javascript";
- eyecancer.src = "/js/eyecancer.min.js";
+ eyecancer.src = cdn + "/js/eyecancer.min.js";
document.getElementsByTagName("head")[0].appendChild(eyecancer);
return false;
}