<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - example-example7-production</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script>
<script src="app.js"></script>
<link rel="stylesheet" href="styles.css">
</head>
<body ng-app="test">
<div ng-controller="testCtrl">
<!-- popover -->
<div id="popOverHtml" ng-show="isOpen">
<div class="col-md-3 feedback-popover">
<div class="methods">
<div style="width:12%;padding:10px;float:left;">
<button type="button" class=" toggle-updown-buttons" ng-click="goUp()">
<i class="fa fa-caret-up"></i>
</button>
<button type="button" class="toggle-updown-buttons" style="margin-top: 10px;" ng-click="goDown()">
<i class="fa fa-caret-down"></i>
</button>
</div>
<div style="width: 100%%; padding: 10px;">
<p ng-repeat="slot in slots" ng-class="[{'active-slot': (index === slot)}, 'slot']" >{{items[slot].name}} </p>
</div>
</div>
<div class="inline-checks">
<label class="radio-inline">
<input type="radio" name="inlineRadioOptions" id="inlineRadio1" value="option1" /> Yes
</label>
<label class="radio-inline">
<input type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2" /> No
</label>
</div>
<hr style="margin-top:8px;margin-bottom:10px;" />
<p>How could we improve this article (Optional)</p>
<textarea class="form-control" rows="3"></textarea>
<div style="padding:10px;">
<button class="btn btn-default" ng-click="showPopover=0">Cancel</button>
<button class="btn btn-default">Submit</button>
</div>
</div>
</div>
<!-- popover end -->
<button id="feedback-button" type="button" class="label label-danger floating-feedback" ng-click="toggleMenu()">Helpful?
</button>
<div class="container" id="container">
<div ng-repeat="item in items">
<h2>{{item.name}}</h2>
<p>test {{item.name}} test {{item.name}}test {{item.name}}test {{item.name}}test {{item.name}}test {{item.name}}test {{item.name}}test {{item.name}}</p>
</div>
</div>
</div>
</body>
</html>
.floating-feedback {
background-color: #d1222b;
/* display: block; */
position: fixed;
z-index: 999;
right: 32px;
margin-top: 45px;
color: #fff;
border: 0px;
font-weight: 300;
padding: 0.4em;
font-size: 80%;
padding-top: 0.5em;
}
.feedback-popover {
position: fixed;
width: 50%;
border:1px solid;
right: 32px;
background-color: #fff;
z-index: 1030;
top: 66px;
max-height: 350px;
transition: max-height 0.5s ease-in-out;
transition: max-height 0.5s ease-in-out;
transition: max-height 0.5s ease-in-out;
transition: max-height 0.5s ease-in-out;
}
.feedback-popover-collapse {
transition: max-height 0.5s ease-in-out;
transition: max-height 0.5s ease-in-out;
transition: max-height 0.5s ease-in-out;
transition: max-height 0.5s ease-in-out;
max-height: 0px;
position: fixed;
right: 32px;
background-color: #fff;
z-index: 1030;
top: 181px;
}
.inline-checks {
margin-left: auto;
margin-right: auto;
width: 43%;
}
.toggle-updown-buttons {
color: #000;
background-color: #dcdcdc;
display: block;
width: 16px;
height: 30px;
padding: 0px;
border-radius: 4px;
border: 0px;
}
.slot {
margin: 0;
}
.active-slot{
color: blue;
}
Output
You can jump to the latest bin by adding /latest
to your URL
Keyboard 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. |