<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<body class="ember-application">
<div class="ember-view" id="ember177"><a href="/ships" id="ember178" class="active ember-view">Ships</a>
<a href="/" id="ember180" class="ember-view">Index</a>
<div class="application-outlet-wrapper">
<div id="ember201" class="ships-container liquid-container ember-view liquid-animating" style="width: 1773px; height: 977px;"><div id="ember223" class="liquid-child ember-view velocity-animating" style="width: 2039.27px; height: 2039.27px; position: absolute; top: 0px; left: 0px; transform: scaleX(0.260017) scaleY(0.260017) translateZ(0px);"><div style="background-color: black; overflow: auto;">
<h1 style="color: white">Add Ship</h1>
</div></div><div id="ember219" class="liquid-child ember-view" style="top: 0px; left: 0px; width: 1773px; height: 977px; position: absolute;"><h1>Ships</h1></div></div>
<a href="/ships" id="ember209" class="cd-nav-trigger close-nav ember-view">Add Ship <span class="cd-icon"></span></a>
</div></div></body>
</body>
</html>
/* --------------------------------
Primary style
-------------------------------- */
*, *::after, *::before {
box-sizing: border-box;
box-sizing: border-box;
box-sizing: border-box;
}
*::after, *::before {
content: '';
}
body {
font-size: 100%;
font-family: "PT Sans", sans-serif;
color: #091d23;
background-color: #ffb441;
}
a {
color: #1e6074;
text-decoration: none;
}
/* --------------------------------
Main components
-------------------------------- */
html, body {
height: 100%;
margin: 0;
}
header {
z-index: 3;
}
.cd-logo, .cd-nav-trigger {
position: fixed;
display: inline-block;
}
.cd-logo {
top: 28px;
left: 5%;
}
.cd-logo img {
display: block;
}
.cd-nav-trigger {
top: 18px;
right: 5%;
height: 44px;
width: 44px;
z-index: 5;
/* image replacement */
overflow: hidden;
text-indent: 100%;
white-space: nowrap;
}
.cd-nav-trigger::before, .cd-nav-trigger::after {
content: '';
}
.cd-nav-trigger .cd-icon {
/* icon created in CSS */
position: absolute;
left: 50%;
top: 50%;
bottom: auto;
right: auto;
transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
display: inline-block;
width: 18px;
height: 3px;
background-color: #ffffff;
z-index: 10;
}
.cd-nav-trigger .cd-icon::before, .cd-nav-trigger .cd-icon:after {
content: '';
/* upper and lower lines of the menu icon */
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
background-color: #ffffff;
/* Force Hardware Acceleration in WebKit */
transform: translateZ(0);
transform: translateZ(0);
transform: translateZ(0);
transform: translateZ(0);
transform: translateZ(0);
backface-visibility: hidden;
backface-visibility: hidden;
/* apply transition to transform property */
transition: transform .3s;
transition: transform .3s;
transition: transform .3s;
}
.cd-nav-trigger .cd-icon::before {
transform: translateY(-6px) rotate(0deg);
transform: translateY(-6px) rotate(0deg);
transform: translateY(-6px) rotate(0deg);
transform: translateY(-6px) rotate(0deg);
transform: translateY(-6px) rotate(0deg);
}
.cd-nav-trigger .cd-icon::after {
transform: translateY(6px) rotate(0deg);
transform: translateY(6px) rotate(0deg);
transform: translateY(6px) rotate(0deg);
transform: translateY(6px) rotate(0deg);
transform: translateY(6px) rotate(0deg);
}
.cd-nav-trigger::before, .cd-nav-trigger::after {
/* 2 rounded colored backgrounds for the menu icon */
position: absolute;
top: 0;
left: 0;
border-radius: 50%;
height: 100%;
width: 100%;
/* Force Hardware Acceleration in WebKit */
transform: translateZ(0);
transform: translateZ(0);
transform: translateZ(0);
transform: translateZ(0);
transform: translateZ(0);
backface-visibility: hidden;
backface-visibility: hidden;
transition-property: transform;
transition-property: transform;
transition-property: transform;
}
.cd-nav-trigger::before {
background-color: #091d23;
transform: scale(1);
transform: scale(1);
transform: scale(1);
transform: scale(1);
transform: scale(1);
transition-duration: 0.3s;
transition-duration: 0.3s;
transition-duration: 0.3s;
transition-delay: 0.4s;
transition-delay: 0.4s;
transition-delay: 0.4s;
}
.cd-nav-trigger::after {
background-color: #ffb441;
transform: scale(0);
transform: scale(0);
transform: scale(0);
transform: scale(0);
transform: scale(0);
transition-duration: 0s;
transition-duration: 0s;
transition-duration: 0s;
transition-delay: 0s;
transition-delay: 0s;
transition-delay: 0s;
}
.cd-nav-trigger.close-nav::before {
/* user clicks on the .cd-nav-trigger element - 1st rounded background disappears */
transform: scale(0);
transform: scale(0);
transform: scale(0);
transform: scale(0);
transform: scale(0);
}
.cd-nav-trigger.close-nav::after {
/* user clicks on the .cd-nav-trigger element - 2nd rounded background appears */
transform: scale(1);
transform: scale(1);
transform: scale(1);
transform: scale(1);
transform: scale(1);
transition-duration: 0.3s;
transition-duration: 0.3s;
transition-duration: 0.3s;
transition-delay: 0.4s;
transition-delay: 0.4s;
transition-delay: 0.4s;
}
.cd-nav-trigger.close-nav .cd-icon {
/* user clicks on the .cd-nav-trigger element - transform the icon */
background-color: rgba(255, 255, 255, 0);
}
.cd-nav-trigger.close-nav .cd-icon::before, .cd-nav-trigger.close-nav .cd-icon::after {
background-color: white;
}
.cd-nav-trigger.close-nav .cd-icon::before {
transform: translateY(0) rotate(45deg);
transform: translateY(0) rotate(45deg);
transform: translateY(0) rotate(45deg);
transform: translateY(0) rotate(45deg);
transform: translateY(0) rotate(45deg);
}
.cd-nav-trigger.close-nav .cd-icon::after {
transform: translateY(0) rotate(-45deg);
transform: translateY(0) rotate(-45deg);
transform: translateY(0) rotate(-45deg);
transform: translateY(0) rotate(-45deg);
transform: translateY(0) rotate(-45deg);
}
.cd-primary-nav {
/* by default it's hidden */
position: fixed;
left: 0;
top: 0;
height: 100%;
width: 100%;
padding: 80px 5%;
z-index: 3;
background-color: #091d23;
overflow: auto;
/* this fixes the buggy scrolling on webkit browsers - mobile devices only - when overflow property is applied */
overflow-scrolling: touch;
visibility: hidden;
opacity: 0;
transition: visibility 0s, opacity 0.3s;
transition: visibility 0s, opacity 0.3s;
transition: visibility 0s, opacity 0.3s;
}
.cd-primary-nav li {
margin: 1.6em 0;
text-align: center;
text-transform: capitalize;
}
.cd-primary-nav a {
font-size: 20px;
font-size: 1.25rem;
font-smoothing: antialiased;
osx-font-smoothing: grayscale;
transition: color 0.2s;
transition: color 0.2s;
transition: color 0.2s;
}
.no-touch .cd-primary-nav a:hover {
color: #ffffff;
}
.cd-primary-nav.fade-in {
/* navigation visible at the end of the circle animation */
visibility: visible;
opacity: 1;
}
@media only screen and (min-width: 768px) {
.cd-primary-nav li {
margin: 2em 0;
}
.cd-primary-nav a {
font-size: 28px;
font-size: 1.75rem;
}
}
@media only screen and (min-width: 1170px) {
.cd-primary-nav li {
margin: 2.6em 0;
}
.cd-primary-nav a {
font-size: 32px;
font-size: 2rem;
}
}
.cd-overlay-nav, .cd-overlay-content {
/* containers of the 2 main rounded backgrounds - these containers are used to position the rounded bgs behind the menu icon */
position: fixed;
top: 18px;
right: 5%;
height: 4px;
width: 4px;
transform: translateX(-20px) translateY(20px);
transform: translateX(-20px) translateY(20px);
transform: translateX(-20px) translateY(20px);
transform: translateX(-20px) translateY(20px);
transform: translateX(-20px) translateY(20px);
}
.cd-overlay-nav span, .cd-overlay-content span {
display: inline-block;
position: absolute;
border-radius: 50%;
/* Force Hardware Acceleration in WebKit */
transform: translateZ(0);
transform: translateZ(0);
transform: translateZ(0);
transform: translateZ(0);
transform: translateZ(0);
backface-visibility: hidden;
backface-visibility: hidden;
will-change: transform;
transform-origin: 50% 50%;
transform-origin: 50% 50%;
transform-origin: 50% 50%;
transform-origin: 50% 50%;
transform-origin: 50% 50%;
transform: scale(0);
transform: scale(0);
transform: scale(0);
transform: scale(0);
transform: scale(0);
}
.cd-overlay-nav.is-hidden, .cd-overlay-content.is-hidden {
/* background fades out at the end of the animation */
opacity: 0;
visibility: hidden;
transition: opacity .3s 0s, visibility 0s .3s;
transition: opacity .3s 0s, visibility 0s .3s;
transition: opacity .3s 0s, visibility 0s .3s;
}
.cd-overlay-nav {
/* main rounded colored bg 1 */
z-index: 2;
}
.cd-overlay-nav span {
background-color: #091d23;
}
.cd-overlay-content {
/* main rounded colored bg 2 */
z-index: 4;
}
.cd-overlay-content span {
background-color: #ffb441;
}
.cd-content {
/* just some dummy content */
padding: 80px 0;
width: 90%;
max-width: 768px;
margin: 0 auto;
z-index: 1;
}
.cd-content .cd-intro {
height: 200px;
padding-top: 4.6em;
}
.cd-content h1 {
text-align: center;
font-size: 20px;
font-size: 1.25rem;
}
.cd-content p {
line-height: 1.5;
color: #a76500;
}
@media only screen and (min-width: 768px) {
.cd-content .cd-intro {
height: 250px;
padding-top: 6em;
}
.cd-content h1 {
font-size: 28px;
font-size: 1.75rem;
}
.cd-content p {
font-size: 18px;
font-size: 1.125rem;
line-height: 1.8;
}
}
.liquid-child.ember-view.velocity-animating {
background-color: black;
border-radius: 50%;
}
.ships-container, .ships-container .liquid-child {
height: 100%;
}
div {
height: 100%;
}
Output
This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account
Dismiss xKeyboard Shortcuts
Shortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + ] | Indents selected lines |
ctrl + [ | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + shift + L | Beautify code in active panel |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Open the share options |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
JS Bin URLs
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |