Difference between revisions of "Template:Find a nation"

From NSWiki
Jump to: navigation, search
(whoops)
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<shtml version="2" keyname="jenlom" hash="53d3e5755d7a238e16a4b8bf6fa70090291c2fff4a9c970acc44fa44b5a60ec1"><script>
+
<shtml version="2" keyname="jenlom" hash="a0b8601696991e7504de1e315a7dbbbeae677f451abc8c581cbdeb4fe0c5f8bb"><script>
function showDiv() {
+
function showDivnation() {
 
     if ($('#nation:hidden').length > 0) {
 
     if ($('#nation:hidden').length > 0) {
 
         $('#nation').slideDown('medium');  
 
         $('#nation').slideDown('medium');  
Line 6: Line 6:
 
         $('#nationinput').select();
 
         $('#nationinput').select();
 
   } else {
 
   } else {
         search();
+
         searchnation();
 
     }
 
     }
 
}
 
}
function press(e) {
+
function pressnation(e) {
 
     var evt = e || window.event
 
     var evt = e || window.event
 
     if (evt.keyCode === 13) {
 
     if (evt.keyCode === 13) {
         search();
+
         searchnation();
 
     }
 
     }
 
}
 
}
function search() {
+
function searchnation() {
 
     window.location.href = "http://nswiki.org/index.php?search=Nation/" + $("#nationinput").val();
 
     window.location.href = "http://nswiki.org/index.php?search=Nation/" + $("#nationinput").val();
 
}
 
}
 
</script>
 
</script>
<div style="border-width: 0px; border-style: solid; border-radius: 3px; background-color:#white; box-shadow: 0px 4px 10px #999999; align:center; width:80%; text-align: center; padding: 3ex 3ex; margin: 1em 1em 1em 1em; margin-left: 40px; margin-right: 40px;"><div id="welcomeDiv"  style="display:none;" class="answer_list" > WELCOME</div>
+
<div style="border-width: 0px; border-style: solid; background-color: #fff; box-shadow: 0px 1px 2px #999999; align:center; text-align: center; padding: 3ex;"><a href="http://nswiki.org/index.php??title=Category:Nations">Browse Nations</a><br /><input type="button" name="nation" value="Find A Nation" onclick="showDivnation()"; class="btn btn-default btn-lg btn-block" /><div id="nation" style="display: none;"><input type="text" id= "nationinput" placeholder="Nation" style="width: 95%; border:0px solid;  border-radius: 3px; box-shadow: 0px 2px 10px #999999; margin-top: 10px; text-align: center; padding: 5px 5px;" onkeydown="return pressnation( event );"></input></div></div></shtml>
<input type="button" name="nation" value="Find a nation" onclick="showDiv()" /><div id="nation" style="display: none;"><input type="text" id= "nationinput" placeholder="Nation" style="border:0px solid; box-shadow: 0px 2px 10px #999999; margin-top: 10px; text-align: center; padding: 5px 5px;" onkeydown="return press( event );"></input></div></div>
+
</shtml>
+

Latest revision as of 10:35, 19 April 2014

Browse Nations