From 1a301791bb621fa01fa76e9403b23fe1f4a120af Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Sun, 5 Feb 2023 22:57:54 +0530 Subject: Added a more extensive way to automate script development. --- src/scripts/stop-blocking.js | 956 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 956 insertions(+) create mode 100644 src/scripts/stop-blocking.js (limited to 'src/scripts/stop-blocking.js') diff --git a/src/scripts/stop-blocking.js b/src/scripts/stop-blocking.js new file mode 100644 index 0000000..7e5d953 --- /dev/null +++ b/src/scripts/stop-blocking.js @@ -0,0 +1,956 @@ +var contextPath = "/BanglarBhumi"; +var currentTheme = ''; +var carrerData = ''; +var previousTheme = ''; +var menuHeader=''; + +var user = ""; +var user_type = ""; +var beforeLoginModal =""; +var afterLoginModal = ""; +var afterLoginDiv = ""; +var beforeLoginDiv = ""; +var afterLoginLabel = ""; +var btngriv = ""; +var modal1 = ""; +var btn = ""; +var span = ""; +document.oncontextmenu = new Function("return true"); +$(document).keydown(function (event) { + return true; +}); +$(document).ready(function () { + switch_style(currentTheme); + if(currentTheme == 'black'){ + $(".dark").show(); + $(".light").hide(); + }else{ + $(".dark").hide(); + $(".light").show(); + } + + len=menuHeader.length; + var fullMenu=""; + for(var i=0;i" +"[ "+ value.dcode+" ] "+ value.uni_dname + ""; + }); + + $("select#lstDistrictCodeBrkFld").html(listDistItems); + $('#brkfldmyModal').show(); + },"json"); +} + +function saveLocation(){ + $(".transparentCover").show(); + $(".loading").show(); + $.ajax({ + type : "POST", + url : "saveBrkFldLocation", + data : { lstDistrictCodeBrkFld : $("#lstDistrictCodeBrkFld").val() }, + success : function(response, textStatus) { + $('#brkfldmyModal').hide(); + $('#information-modal .information') + .html("
"+response+"
"); + $('#information-modal').modal('show'); + $(".transparentCover").hide(); + $(".loading").hide(); + }, + error : function(jqXHR,textStatus, exception) { + $('#brkfldmyModal').hide(); + $('#information-modal .information') + .html("
"+exception+"
"); + $('#information-modal').modal('show'); + $(".transparentCover").hide(); + $(".loading").hide(); + } + }); +} + -- cgit v1.2.3