jQuery example - following an example

I bought this template and want to make this page work in a separate file.

http://www.keenthemes.com/preview/metronic/theme/templates/admin4/ui_session_timeout.html

I have made it work (minus the css) but there's one issue. I don't know why when I bring up my sample page, a "modal" is already displayed. After 5 seconds or so, the actual modal is displayed.

My example is small and I've zipped it and attached it. Just click on the HTML page. I have screenshot below as well.

This screenshot shows when the page is first loaded. I don't know where this modal (I know it's not modal...I think it's because I don't have css) shows up.

first-one.png
Then after 5 seconds, the actual modal shows up and the first one is there.  
second-one.pngSession.zip
LVL 8
CamilliaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David S.Commented:
The script generates the elements for you. And yet you've got them in the page already, so it shows up twice.

FYI, for future questions we'd be better able to help you if you included the non-minimized versions of the uncommon scripts. (jQuery is extremely common and jQuery UI and Bootstrap are common.)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CamilliaAuthor Commented:
but how do I fix it??
0
David S.Commented:
Remove the "sessionTimeout-dialog" element and all of its descendants that are inside the <body> of your test page.
0
CamilliaAuthor Commented:
let me try
0
lenamtlCommented:
Hi,
here is the reference on how to use modal with bootstrap
http://getbootstrap.com/javascript/#modals

The session time-out script
https://github.com/maxfierke/jquery-sessionTimeout-bootstrap

In case you prefer to use Jquery-ui style
http://codepen.io/anon/pen/qEzNpd
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.