This repository has been archived by the owner on Nov 21, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
116 lines (108 loc) · 5.16 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>NationStates++</title>
<link href="assets//css/bootstrap.css" rel="stylesheet">
<link rel="icon" type="image/ico" href="favicon.ico?v=1"/>
<link href="jumbotron.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-47457755-1', 'nationstatesplusplus.com');
ga('send', 'pageview');
</script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://nationstatesplusplus.net">NationStates++</a>
</div>
<div class="navbar-collapse collapse">
<form class="navbar-form navbar-right">
<div class="form-group">
<span class='navbar-text' style="float:inherit; font-size: 18px;" id='welcome'></span>
</div>
</form>
</div>
</div>
</div>
<div class="jumbotron">
<div class="container">
<h1>NationStates++</h1>
<p>NationStates++ is a browser extension for NationStates.net. Available for all major desktop browsers, and coming soon to iOS and Android devices!</p>
<p><a href="https://nationstatesplusplus.net/install" class="btn btn-primary btn-lg" role="button">Learn more »</a></p>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-4">
<h2>Regional Newspapers</h2>
<p>Use NationStates++ to create or view regional newspapers, and share your favorite articles and stories! Newspapers can be viewed by users who haven't installed NationStates++ too!</p>
<p><a class="btn btn-default" href="https://nationstatesplusplus.net/newspapers" role="button">View Newspapers »</a></p>
</div>
<div class="col-md-4">
<h2>World Assembly Rankings</h2>
<p>View your world assembly power and influence compared to your region-mates. Ensure your members are abiding by endorsement caps, or try and find sleeper nations lurking in your region.</p>
<p><a class="btn btn-default" href="https://nationstatesplusplus.net/wa" role="button">View Rankings »</a></p>
</div>
<div class="col-md-4">
<h2>National Happenings</h2>
<p>Search through previous national happenings. Check out the sordid past details of other nations, and see every action they have made in the game!</p>
<p><a class="btn btn-default" href="https://nationstatesplusplus.net/happenings" role="button">View Happenings »</a></p>
</div>
</div>
</div>
<footer class="bs-footer" role="contentinfo">
<p>NationStates++, <a href="http://opensource.org/licenses/MIT">Licensed MIT</a>, 2014</p>
<ul class="footer-links muted">
<li><a href="https://nationstatesplusplus.net/install">Install NS++</a></li>
<li>·</li>
<li><a href="https://github.com/Afforess/nspp-website">GitHub</a></li>
<li>·</li>
<li><a href="https://nationstatesplusplus.net/">About</a></li>
<li>·</li>
<li><a href="https://nationstatesplusplus.net/privacy">Privacy</a></li>
<li>·</li>
<li><a href="https://nationstatesplusplus.net/tos">Terms Of Service</a></li>
<li>·</li>
<li><a href="http://blog.nationstatesplusplus.net/">Blog</a></li>
<li>·</li>
</ul>
</footer>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="assets//js/bootstrap.min.js"></script>
<script src="nspp.js"></script>
<script type="text/javascript">
$(document).ready(function() {
if (typeof String.prototype.toTitleCase != 'function') {
String.prototype.toTitleCase = function (){
return this.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
};
}
RegExp.escape = function(text) {
return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
}
String.prototype.replaceAll = function(search, replace) {
return this.replace(new RegExp(RegExp.escape(search),'g'), replace);
};
getNSPPAPI().getUserDetails(function(nation, authCode) {
$("#welcome").html("Welcome: <a class='navbar-link' href='http://www.nationstates.net/nation=" + nation + "' target='_blank'>" + nation.replaceAll("_", " ").toTitleCase() + "</a>");
});
});
</script>
</body>
</html>