Line 2: | Line 2: | ||
<html> | <html> | ||
<head> | <head> | ||
− | + | <meta charset="utf-8"> | |
− | + | <title>Template:2018_NAU-CHINA</title> | |
− | + | <script src="https://code.jquery.com/jquery-3.3.1.js" | |
− | + | integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" | |
− | + | crossorigin="anonymous"> | |
− | + | </script> | |
− | + | <style type="text/css"> | |
− | + | body { | |
− | + | overflow-y: hidden; | |
+ | } | ||
− | + | #mw-content-text { | |
− | + | margin: 120px 0 0 0; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
+ | /*定义加载图像的格式*/ | ||
+ | #loading_icon { | ||
+ | position: fixed; | ||
+ | left: 0px; | ||
+ | top: 0px; | ||
+ | width: 100%; | ||
+ | height: 100%; | ||
+ | z-index: 9999; | ||
+ | background: url("https://static.igem.org/mediawiki/2018/0/0c/T--NAU-CHINA--loading_icon.gif") center no-repeat black; | ||
+ | background-size: 300px; | ||
+ | } | ||
+ | /*定义加载文字的格式*/ | ||
+ | #loading_icon p { | ||
+ | position: fixed; | ||
+ | top: 62%; | ||
+ | left: 10%; | ||
+ | font-size: 3em; | ||
+ | font-family: 'Vladimir Script','Rage Italic','sans-serif'; | ||
+ | color:white; | ||
+ | text-align:center; | ||
+ | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | /*图像指针为小手,并且可以点开*/ | |
− | + | img.zoom { | |
− | + | cursor: pointer; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | /*指针悬停时图片上浮*/ | |
− | + | .img_zoom:hover { | |
− | + | padding-bottom: 5px; | |
− | + | transition: 0.5s; | |
− | + | margin-top: -5px; | |
− | + | } | |
− | + | /*小图标左侧浮动*/ | |
− | + | .img_guide { | |
− | + | float: left; | |
− | + | margin: 0 20px 0 0; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | /*小图标移动放大*/ | ||
+ | .img_guide { | ||
+ | transform: scale(0.8); | ||
+ | transition: 0.5s; | ||
+ | } | ||
− | + | .img_guide:hover { | |
+ | transform: scale(1); | ||
+ | transition: 0.5s; | ||
+ | } | ||
+ | |||
+ | </style> | ||
+ | |||
+ | |||
+ | <script> | ||
− | |||
//更改地址栏图标 | //更改地址栏图标 | ||
$( document ).ready( function() { | $( document ).ready( function() { | ||
Line 75: | Line 80: | ||
}); | }); | ||
− | // | + | //加载页面 |
− | $( | + | $(document).ready(function() { |
− | + | //加载图像 | |
+ | $("#loading_icon").fadeOut(1000); //应用2000,调试1 | ||
+ | //加载文字 | ||
+ | var l = $(window).width(); | ||
+ | var l2 = $("#loading_icon p").width() | ||
+ | $("#loading_icon p").css("left", (l - l2) / 2 + "px"); | ||
+ | |||
+ | |||
}); | }); | ||
Line 86: | Line 98: | ||
− | </script> | + | |
+ | </script> | ||
</head> | </head> | ||
<body> | <body> | ||
− | + | <div id="loading_icon"><p>For basic advancement...</p></div> | |
− | + | ||
− | + | ||
− | + | ||
Revision as of 17:14, 12 October 2018
For basic advancement...