Skip to content

Commit 0683728

Browse files
committed
Added beta tag.
1 parent 785f2fd commit 0683728

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
<body>
8686

8787
<div class="top">
88-
<h1 class="icon regexr-logo">&#xE600;</h1><h1 class="regexr-text">RegExr</h1><span class="version regexr-text">v2.0</span>
88+
<h1 class="icon regexr-logo">&#xE600;</h1><h1 class="regexr-text">RegExr</h1><span class="version regexr-text">v2.0<span class="beta-banner hidden">BETA</span></span>
8989
<div class="links">
9090
by <a href="http://twitter.com/gskinner/" target="_blank">gskinner</a>
9191
<a href="./v1/" target="_blank">RegExr v1</a>

js/index.template.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ SOFTWARE.
4040
return;
4141
}
4242

43+
if (document.location.host != "regexr.com" && document.location.host != "www.regexr.com") {
44+
$.removeClass($.el(".beta-banner"), "hidden");
45+
}
46+
4347
// Setup our copy functionality.
4448
ZeroClipboard.config(
4549
{

scss/site.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,10 @@
4141
@include vendor-prefix(transform, translate(-50%, -50%));
4242
}
4343
}
44+
45+
.beta-banner {
46+
color: #ff0000;
47+
font-weight: bold;
48+
font-size: .70rem;
49+
padding-left: 0.2rem;
50+
}

0 commit comments

Comments
 (0)