aboutsummaryrefslogtreecommitdiffstats
path: root/public/admin/view/javascript/openbay/js/openbay.js
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-08-18 21:14:58 -0500
committerJesús <heckyel@hyperbola.info>2019-08-18 21:14:58 -0500
commit2eed7b082f83630301e51f57ca8394de228a8605 (patch)
tree1d19962d22d30f99317d9276e4bae7744fc93fc2 /public/admin/view/javascript/openbay/js/openbay.js
downloadlibrecart-2eed7b082f83630301e51f57ca8394de228a8605.tar.lz
librecart-2eed7b082f83630301e51f57ca8394de228a8605.tar.xz
librecart-2eed7b082f83630301e51f57ca8394de228a8605.zip
first commit
Diffstat (limited to 'public/admin/view/javascript/openbay/js/openbay.js')
-rw-r--r--public/admin/view/javascript/openbay/js/openbay.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/public/admin/view/javascript/openbay/js/openbay.js b/public/admin/view/javascript/openbay/js/openbay.js
new file mode 100644
index 0000000..359b3e6
--- /dev/null
+++ b/public/admin/view/javascript/openbay/js/openbay.js
@@ -0,0 +1,23 @@
+function showGreyScreen(boxDiv){
+ $('#greyScreen').css({ "display": "block", opacity: 0.6, "width":$(document).width()+20,"height":$(document).height(), "z-index":99998}).show();
+ $('#'+boxDiv).fadeIn().css({"display": "block", "z-index":99999});
+ $('body').css({"overflow":"hidden"});
+}
+
+function hideGreyScreen(){
+ $('#greyScreen').css("display", "none");
+ $('.greyScreenBox').css("display", "none");
+ $('body').css({"overflow":"scroll"});
+}
+
+$(window).resize(function(){
+ $('#greyScreen').css("display") == 'block'?showGreyScreen():"";
+});
+
+$('.previewClose').bind('click', function(){
+ hideGreyScreen();
+});
+
+$(document).ready(function(){
+ hideGreyScreen();
+}); \ No newline at end of file