NO JAVASCRIPT NEEDED
This commit is contained in:
parent
91cd8f719a
commit
ec8cee4384
@ -46,6 +46,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
//Make the DIV element draggagle:
|
//Make the DIV element draggagle:
|
||||||
dragElement(document.getElementById("mydiv"));
|
dragElement(document.getElementById("mydiv"));
|
||||||
|
|
||||||
@ -95,7 +96,7 @@ function dragElement(elmnt) {
|
|||||||
|
|
||||||
|
|
||||||
var tag = document.createElement('script');
|
var tag = document.createElement('script');
|
||||||
tag.src = "http://www.youtube.com/iframe_api";
|
tag.src = "https://www.youtube.com/iframe_api";
|
||||||
|
|
||||||
var fScriptTag = document.getElementsByTagName('script')[0];
|
var fScriptTag = document.getElementsByTagName('script')[0];
|
||||||
fScriptTag.parentNode.insertBefore(tag, fScriptTag);
|
fScriptTag.parentNode.insertBefore(tag, fScriptTag);
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
/* The Modal (background) */
|
/* The Modal (background) */
|
||||||
.modal {
|
.modal {
|
||||||
|
display: none;
|
||||||
position: fixed; /* Stay in place */
|
position: fixed; /* Stay in place */
|
||||||
z-index: 10; /* Sit on top */
|
z-index: 10; /* Sit on top */
|
||||||
padding-top: 100px; /* Location of the box */
|
padding-top: 100px; /* Location of the box */
|
||||||
@ -82,6 +83,12 @@ vertical-align: middle;
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
document.body.onload = function() {
|
||||||
|
document.getElementById('myModal').style.diplay = '';
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
html, body {
|
html, body {
|
||||||
|
Loading…
Reference in New Issue
Block a user