<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
Question
</title><style type="text/css">
/*----------------------------------------------------------
The base color for this template is #5c87b2. If you'd like
to use a different color start by replacing all instances of
#5c87b2 with your new color.
----------------------------------------------------------*/
body
{
background-color: #FFFFFF;
font-size: .75em;
font-family: Calibri;
margin: 0;
padding: 0;
color: #333333;
}
a:link
{
color: #DB5174;
}
a:visited
{
color: #505abc;
}
a:hover
{
color: #DB5174;
text-decoration: underline;
}
a:active
{
color: #12eb87;
}
p, ul
{
margin-bottom: 20px;
line-height: 1.6em;
}
/* HEADINGS
----------------------------------------------------------*/
h1, h2, h3, h4, h5, h6
{
font-size: 1.5em;
color: #000;
font-family: Calibri;
}
h1
{
font-size: 2em;
padding-bottom: 0;
margin-bottom: 0;
}
h2
{
padding: 0 0 10px 0;
}
h3
{
font-size: 1.2em;
}
h4
{
font-size: 1.1em;
}
h5, h6
{
font-size: 1em;
}
/* this rule styles <h2> tags that are the
first child of the left and right table columns */
.rightColumn > h1, .rightColumn > h2, .leftColumn > h1, .leftColumn > h2
{
margin-top: 0;
}
/* PRIMARY LAYOUT ELEMENTS
----------------------------------------------------------*/
/* you can specify a greater or lesser percentage for the
page width. Or, you can specify an exact pixel width. */
.page
{
width: 80%;
margin-left: auto;
margin-right: auto;
}
#header
{
position: relative;
margin-bottom: 0px;
color: #fff;
padding: 0;
}
#header h1
{
font-weight: bold;
padding: 5px 0;
margin: 0;
color: black;
border: none;
line-height: 2em;
font-family: Calibri;
font-size: 32px !important;
}
#main
{
padding: 5px 30px 15px 30px;
background-color: #E5E5E5;
margin-top:5px;
margin-bottom: 30px;
border-radius: 10px;
_height: 1px; /* only IE6 applies CSS properties starting with an underscore */
}
#footer
{
color: #999;
padding: 10px 0;
text-align: center;
line-height: normal;
margin: 0;
font-size: .9em;
}
#MainContentTitle
{
font-size: 2.5em;
font-weight: bold;
color: #666666;
white-space: normal;
border-bottom-style: double;
border-bottom-width:1px;
border-bottom:10px;
}
/*question display properties*/
#QuestionTitle
{
font-size:2em;
padding:10px 0;
}
#QuestionTitle a:link
{
color:blue;
}
#QuestionTitle a:hover
{
color: #666666;
}
#AskingUser
{
position:relative;
text-align: right;
padding-top:10px;
padding-bottom:10px;
border-bottom-style:dotted;
border-width:1px;
}
#QuestionBody
{
border-bottom:1px dotted black;
}
#AnswerBody
{
border-bottom:1px dotted black;
}
#AnsweringUser
{
text-align:right;
}
#QuestionEditLink
{
border:5px;
color: #666666;
width:auto;
float:left;
padding:2px;
z-index:20;
position:relative;
}
#QuestionHistoryLink
{
border:5px;
color: #666666;
width:auto;
float:left;
padding:2px;
z-index:20;
position:relative;
}
/* TAB MENU
----------------------------------------------------------*/
ul#menu
{
border-bottom: 1px #5C87B2 solid;
padding: 0 0 2px;
position: relative;
margin: 0;
text-align: right;
}
ul#menu li
{
display: inline;
list-style: none;
}
ul#menu li#greeting
{
padding: 10px 20px;
font-weight: bold;
text-decoration: none;
line-height: 2.8em;
color: #fff;
}
ul#menu li a
{
padding: 10px 20px;
font-weight: bold;
text-decoration: none;
line-height: 2.8em;
background-color: #666666;
color: #FFFFFF;
font-family: Calibri;
}
ul#menu li a:hover
{
background-color: rgb(204, 204, 204);
text-decoration: underline;
font-family: Calibri;
color: #666666;
}
ul#menu li a:active
{
background-color: #a6e2a6;
text-decoration: none;
}
ul#menu li.selected a
{
background-color: #fff;
color: #000;
}
/* FORM LAYOUT ELEMENTS
----------------------------------------------------------*/
fieldset
{
margin: 1em 0;
padding: 1em;
border: 1px solid #CCC;
}
fieldset p
{
margin: 2px 12px 10px 10px;
}
legend
{
font-size: 1.1em;
font-weight: 600;
padding: 2px 4px 8px 4px;
}
input[type="text"]
{
width: 200px;
border: 1px solid #CCC;
}
input[type="password"]
{
width: 200px;
border: 1px solid #CCC;
}
/* TABLE
----------------------------------------------------------*/
table
{
border: solid 1px #e8eef4;
border-collapse: collapse;
}
table td
{
padding: 5px;
border: solid 1px #e8eef4;
}
table th
{
padding: 6px 5px;
text-align: left;
background-color: #e8eef4;
border: solid 1px #e8eef4;
}
/* MISC
----------------------------------------------------------*/
.clear
{
clear: both;
}
.error
{
color:Red;
}
#menucontainer
{
margin-top:40px;
}
div#title
{
display:block;
float:left;
text-align:left;
}
#logindisplay
{
font-size:1.1em;
display:block;
text-align:right;
margin:10px;
color:Black;
}
#logindisplay a:link
{
color: black;
text-decoration: underline;
}
#logindisplay a:visited
{
color: black;
text-decoration: underline;
}
#logindisplay a:hover
{
color: black;
text-decoration: none;
}
/* Styles for validation helpers
-----------------------------------------------------------*/
.field-validation-error
{
color: #ff0000;
}
.field-validation-valid
{
display: none;
}
.input-validation-error
{
border: 1px solid #ff0000;
background-color: #ffeeee;
}
.validation-summary-errors
{
font-weight: bold;
color: #ff0000;
}
.validation-summary-valid
{
display: none;
}
/* Styles for editor and display helpers
----------------------------------------------------------*/
.display-label,
.editor-label,
.display-field,
.editor-field
{
margin: 0.5em 0;
}
.text-box
{
width: 30em;
}
.text-box.multi-line
{
height: 6.5em;
}
.tri-state
{
width: 6em;
}
/*
Simple OpenID Plugin
http://code.google.com/p/openid-selector/
This code is licenced under the New BSD License.
*/
#openid_form {
width: 580px;
}
#openid_form legend {
font-weight: bold;
}
#openid_choice {
display: none;
}
#openid_input_area {
clear: both;
padding: 10px;
}
#openid_btns, #openid_btns br {
clear: both;
}
#openid_highlight {
padding: 3px;
background-color: #FFFCC9;
float: left;
}
.openid_large_btn {
width: 100px;
height: 60px;
/* fix for IE 6 only: http://en.wikipedia.org/wiki/CSS_filter#Underscore_hack */
_width: 102px;
_height: 62px;
border: 1px solid #DDD;
margin: 3px;
float: left;
}
.openid_small_btn {
width: 24px;
height: 24px;
/* fix for IE 6 only: http://en.wikipedia.org/wiki/CSS_filter#Underscore_hack */
_width: 26px;
_height: 26px;
border: 1px solid #DDD;
margin: 3px;
float: left;
}
a.openid_large_btn:focus {
outline: none;
}
a.openid_large_btn:focus {
outline-style: none;
}
.openid_selected {
border: 4px solid #DDD;
}
/*==============================WMD CONTROL=============================== */
.wmd-panel
{
margin-left: 25%;
margin-right: 25%;
width: 50%;
min-width: 500px;
}
#wmd-editor
{
}
.wmd-button-bar
{
width: 100%;
}
.wmd-input
{
height: 500px;
width: 100%;
border: 1px solid DarkGray;
}
.wmd-preview
{
}
.wmd-output
{
}
.wmd-button-row
{
position: relative;
margin-left: 5px;
margin-right: 5px;
margin-bottom: 5px;
margin-top: 10px;
padding: 0px;
height: 20px;
}
.wmd-spacer
{
width: 1px;
height: 20px;
margin-left: 14px;
position: absolute;
background-color: White;
display: inline-block;
list-style: none;
}
.wmd-button
{
width: 20px;
height: 20px;
margin-left: 5px;
margin-right: 5px;
position: absolute;
background-image: url(images/wmd-buttons.png);
background-repeat: no-repeat;
background-position: 0px 0px;
display: inline-block;
list-style: none;
}
.wmd-button > a
{
width: 20px;
height: 20px;
margin-left: 5px;
margin-right: 5px;
position: absolute;
display: inline-block;
}
/* sprite button slicing style information */
.wmd-bold-button {left: 0px; background-position: 0px 0;}
.wmd-italic-button {left: 25px; background-position: -20px 0;}
.wmd-spacer1 {left: 50px;}
.wmd-link-button {left: 75px; background-position: -40px 0;}
.wmd-quote-button {left: 100px; background-position: -60px 0;}
.wmd-code-button {left: 125px; background-position: -80px 0;}
.wmd-image-button {left: 150px; background-position: -100px 0;}
.wmd-spacer2 {left: 175px;}
.wmd-olist-button {left: 200px; background-position: -120px 0;}
.wmd-ulist-button {left: 225px; background-position: -140px 0;}
.wmd-heading-button {left: 250px; background-position: -160px 0;}
.wmd-hr-button {left: 275px; background-position: -180px 0;}
.wmd-spacer3 {left: 300px;}
.wmd-undo-button {left: 325px; background-position: -200px 0;}
.wmd-redo-button {left: 350px; background-position: -220px 0;}
.wmd-help-button {right: 0px; background-position: -240px 0;}
.wmd-prompt-background
{
background-color: Black;
}
.wmd-prompt-dialog
{
border: 1px solid #999999;
background-color: #F5F5F5;
}
.wmd-prompt-dialog > div {
font-size: 0.8em;
font-family: arial, helvetica, sans-serif;
}
.wmd-prompt-dialog > form > input[type="text"] {
border: 1px solid #999999;
color: black;
}
.wmd-prompt-dialog > form > input[type="button"]{
border: 1px solid #888888;
font-family: trebuchet MS, helvetica, sans-serif;
font-size: 0.8em;
font-weight: bold;
}
/* Pager */
.pager
{
margin:8px 3px;
padding:3px;
}
.pager .disabled
{
border:1px solid #ddd;
color:#999;
margin-top:4px;
padding:3px;
text-align:center;
}
.pager .current
{
background-color: #FFFF00;
border: 1px solid #009;
color: #808080;
font-weight: bold;
margin-top: 4px;
padding: 3px 5px;
text-align: center;
}
.pager span, .pager a
{
margin: 4px 3px;
}
.pager a
{
border: 1px solid #c0c0c0;
padding: 3px 5px;
text-align: center;
text-decoration: none;
background-color: #808080;
color: #FFFFFF;
}
.pager a:hover
{
border: 1px solid #c0c0c0;
padding: 3px 5px;
text-align: center;
text-decoration: underline;
background-color: #CCCCCC;
color: #808080;
}
</style>
<!-- Simple OpenID Selector -->
<script type="text/javascript" src="/Scripts/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="/Scripts/openid-jquery.js"></script>
<script type="text/javascript" src="/Scripts/openid-jquery-en.js"></script>
<script type="text/javascript" src="/Scripts/jquery.wmd.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
openid.init('openid_identifier');
});
</script>
<!-- /Simple OpenID Selector -->
</head>
<body>
<div class="page">
<div id="header">
<div id="title">
<h1>Questions and answers</h1>
</div>
<div id="logindisplay">
[ <a href="/Account/LogOn">Log On</a> ]
</div>
<div id="menucontainer">
<ul id="menu">
<li><a href="/">Home</a></li>
<li><a href="/Profile/Profile">My Profile</a></li>
<li><a href="/Account/ViewUsers">Users</a></li>
<li><a href="/Question/NewQuestion">Ask new question</a></li>
</ul>
</div>
</div>
<div id="main">
<div id="QestionSection">
<div id="QuestionHeader"><h1>Question 1's new title</h1></div>
<div id="QuestionBody">
<p>A question which has been updated</p>
<div id="QuestionEditLink" ><a href="/Question/EditQuestion/1">Edit</a></div>
<div id="QuestionHistoryLink"><a href="/Question/ShowHistory?postId=9&questionId=1">History</a></div>
<div id="AskingUser"><a href="/Profile/Profile?userName=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fid%3Fid%3DAItOawnZ6IhK1C5cf_9wKstNNfSYIdnRp_zryW4">Asked by Sam</a></div>
</div>
</div>
<div id="AnswerSection">
<div id="AnswerBody"><p>An answer which has been updated again and again</p>
<div id="EditAnswerLink"><a href="/Question/EditAnswer/1">Edit</a></div>
<div id="AnswerHistoryLink"><a href="/Question/ShowHistory?postId=13&questionId=1">History</a></div>
<div id="AnsweringUser"><a href="/Profile/Profile?userName=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fid%3Fid%3DAItOawnZ6IhK1C5cf_9wKstNNfSYIdnRp_zryW4">Answered by Sam</a></div>
</div>
<div id="AnswerBody"><p>another answer to question 1</p>
<div id="EditAnswerLink"><a href="/Question/EditAnswer/2">Edit</a></div>
<div id="AnswerHistoryLink"><a href="/Question/ShowHistory?postId=6&questionId=1">History</a></div>
<div id="AnsweringUser"><a href="/Profile/Profile?userName=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fid%3Fid%3DAItOawnZ6IhK1C5cf_9wKstNNfSYIdnRp_zryW4">Answered by Sam</a></div>
</div>
<div id="AnswerBody"><p>a third or fourth answer</p>
<div id="EditAnswerLink"><a href="/Question/EditAnswer/4">Edit</a></div>
<div id="AnswerHistoryLink"><a href="/Question/ShowHistory?postId=19&questionId=1">History</a></div>
<div id="AnsweringUser"><a href="/Profile/Profile?userName=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fid%3Fid%3DAItOawnZ6IhK1C5cf_9wKstNNfSYIdnRp_zryW4">Answered by Sam</a></div>
</div>
</div>
<form action="/Question/NewAnswer" method="post">
<div id="NewAnswerSection">
<h1>Add a new answer</h1>
<div id="NewAnswerBody">
<div id="answer-wmd-editor">
<textarea name="newAnswer.Body" id="body" rows="5" cols="1" style="width:100%"></textarea>
</div>
<script type="text/javascript">
$().ready(function() {
$("#body").wmd({
"preview": true,
"helpLink": "http://daringfireball.net/projects/markdown/",
"helpHoverTitle": "Markdown Help"
});
});
</script>
</div>
<div id="NewAnswerQuestionId">
<input id="newAnswer_QuestionId" name="newAnswer.QuestionId" type="hidden" value="1" />
</div>
<input type="submit" value="Answer it!" />
</div>
</form>
<div id="footer">
</div>
</div>
</div>
<script type="text/javascript" src="/Scripts/wmd.js"></script>
</body>
</html>
Output
300px
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. |