aboutsummaryrefslogtreecommitdiff
path: root/js/functions.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/functions.js')
-rw-r--r--js/functions.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/js/functions.js b/js/functions.js
new file mode 100644
index 0000000..6a460ad
--- /dev/null
+++ b/js/functions.js
@@ -0,0 +1,21 @@
+$('#btn-send').click(function () {
+ var btn = $(this);
+ btn.button('loading');
+});
+$('.close').click(function () {
+ $('#btn-send').button('reset');
+});
+$('.modal').draggable({
+ handle: ".modal-header"
+});
+function loadFancy(){
+ document.getElementById("loader").style.backgroundImage="url('/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";
+ document.getElementsByTagName("head")[0].appendChild(eyecancer);
+ return false;
+}