Difference between revisions of "NationStates:Login"

From NSWiki
Jump to: navigation, search
(fix token)
m (fix login)
Line 1: Line 1:
<shtml version="2" keyname="afforess" hash="9518492f6b5700a995bbd863c4f8a8d7675858a8f0bda0146fde102787f9663c"><input id='nation_name' placeholder='Nation Name' type='text' style='width:350px;height:24px;'></input><button class='btn' style='margin-left:5px;margin-top: -3px;' id='nation_enter'>Locate Nation</button>
+
<shtml version="2" keyname="afforess" hash="c254ece4f250c562bd63e0020123a9d9b8416616b10c1acbd3e810cdc71e6432"><input id='nation_name' placeholder='Nation Name' type='text' style='width:350px;height:24px;'></input><button class='btn' style='margin-left:5px;margin-top: -3px;' id='nation_enter'>Locate Nation</button>
 
<p id='login_error' style='color:red; font-weight:bold; display:none;'>An Error Occured</p>
 
<p id='login_error' style='color:red; font-weight:bold; display:none;'>An Error Occured</p>
  
Line 15: Line 15:
 
$("#login_error").hide();
 
$("#login_error").hide();
 
$("#nation_enter").attr("disabled", true);
 
$("#nation_enter").attr("disabled", true);
$.get("/nsapi/nation/title/?name=" + encodeURIComponent($("#nation_name").val()), function(data) {
+
$.get("/nsapi/nation/name/?name=" + encodeURIComponent($("#nation_name").val()), function(data) {
 
console.log("found nation named " + $("#nation_name").val());
 
console.log("found nation named " + $("#nation_name").val());
 
$("#nation_enter").removeAttr("disabled").hide();
 
$("#nation_enter").removeAttr("disabled").hide();

Revision as of 21:16, 22 January 2014