Home>
The modal is displayed at the time of loading.
At that time, I want to cover the screen so that it can not be operated, but when I press the button
Works after loading.
I want the button I pressed during loading to not work.
I'm stuck, so I'd be happy if anyone could tell me.
It works after loading at the push of a button.
Corresponding source code
function dispLoading (msg) {
// Allow no arguments (no message)
if (msg == undefined) {
msg = "";
}
// Screen display message
var dispMsg = "" + msg + "";
// Output only when the loading image is not displayed
if ($("# loading"). length == 0) {
$("body"). append ("" + dispMsg + "");
}
}
#loading {
display: table;
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
background-color: #fff;
opacity: 0.8;
}
#loading .loadingMsg {
display: table-cell;
text-align: center;
vertical-align: middle;
padding-top: 140px;
background: url ("[Loading image URL]") center center no-repeat;
}
Button A
Button B
Download
What I tried
When you press the download button, it becomes $('.button'). Css ('pointer-events','none');
When loading is finished, it is returned with auto, but as soon as it is finished, the button works.
Please provide more detailed information here.
-
Answer # 1
Related articles
- during hamburger menu implementation javascript error
- see more button implemented in javascript
- javascript - radio button and checkbox values cannot be obtained accurately
- javascript - i installed a close button, but for some reason it does not disappear
- javascript - implementation of a button to copy text to the clipboard
- javascript - body cannot be sent during axios delete method
- javascript - it doesn't move when i press the button
- javascript - i want to add a one-click copy button to prettify
- javascript - back to top scroll button fade-in/fade-out does not work
- i want to run javascript eventlistener on the html button element obtained from api (php)
- javascript - i want to assign the number of the pressed button to a variable
- button to change html css style doesn't work (javascript)
- javascript - i want the button to return to top to stop at a certain position
- javascript - when the button is pressed, the data is added to the table and then updated for each data
- javascript - i want to prevent the content text from moving when creating a dropdown menu
- javascript - [todo list] when you press the "add" button, the task is displayed → hidden repeatedly
- javascript - automatically shift the button down when displaying multiple lines in html
- javascript - the page top button does not appear
- i want to switch the background image when i tap the button in javascript
Related questions
- javascript - animation-fill-mode: forwards;of the second css animation done with setattribute does not work
- javascript - padding does not apply
- php - i want to loop the posted articles using swiper
- javascript - i get an error that $is not defined in the script embedded in html
- javascript - every time i click a link that scrolls smoothly, the loader starts up
- javascript - if the drawer menu goes off the screen, i want to scroll the drawer menu so that i can see all the menus
- javascript - when overlaying transparent images, i want to cover both the horizontal and vertical positions perfectly
- javascript - the java script is heavy and the screen display is slow
- javascript - i am using chart kick, but the display of "loading" remains and the graph is not displayed
- i'm making a word game with javascript, but the game doesn't end as intended
It's appropriate, but is it like this?