Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7568463

Browse files
ohsayandeanberris
authored andcommitted
Avoid reloading when already on homepage (#13)
* Avoid reloading if on homepage already* Add files via upload* Checked, don't need this anymore
1 parent319cf28 commit7568463

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

‎index.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
<linkrel="stylesheet"href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">
77
<linkrel="stylesheet"href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap-theme.min.css">
88
<linkrel="stylesheet"href="static/cpp-netlib.css">
9+
<script>
10+
click=()=>{
11+
if(window.location.href="https://cpp-netlib.org/"){
12+
// Don't do anything
13+
}else{
14+
window.open("https://cpp-netlib.org/","_self")
15+
}
16+
}
17+
</script>
918
</head>
1019

1120
<bodydata-spy="scroll"data-target="#cpp-netlib-docs-sidebar">
@@ -18,7 +27,7 @@
1827
</div>
1928
<div>
2029
<ulclass="nav navbar-nav">
21-
<liclass="active"><ahref="index.html">Home</a></li>
30+
<liclass="active"><aonclick="check()">Home</a></li>
2231
<li><ahref="process.html">Development Process</a></li>
2332
<li><ahref="style-guide.html">Style Guide</a></li>
2433
<li><ahref="proposals.html">Proposals</a></li>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp