sample jotted code
This commit is contained in:
1
BinaryDad.Coding/wwwroot/css/jotted/jotted.min.css
vendored
Normal file
1
BinaryDad.Coding/wwwroot/css/jotted/jotted.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1,71 +1,7 @@
|
||||
/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
|
||||
for details on configuring this project to bundle and minify static web assets. */
|
||||
body {
|
||||
|
||||
a.navbar-brand {
|
||||
white-space: normal;
|
||||
text-align: center;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
/* Provide sufficient contrast against white background */
|
||||
a {
|
||||
color: #0366d6;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
color: #fff;
|
||||
background-color: #1b6ec2;
|
||||
border-color: #1861ac;
|
||||
}
|
||||
|
||||
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
|
||||
color: #fff;
|
||||
background-color: #1b6ec2;
|
||||
border-color: #1861ac;
|
||||
}
|
||||
|
||||
/* Sticky footer styles
|
||||
-------------------------------------------------- */
|
||||
html {
|
||||
font-size: 14px;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
html {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.border-top {
|
||||
border-top: 1px solid #e5e5e5;
|
||||
}
|
||||
.border-bottom {
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
|
||||
.box-shadow {
|
||||
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
|
||||
}
|
||||
|
||||
button.accept-policy {
|
||||
font-size: 1rem;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
/* Sticky footer styles
|
||||
-------------------------------------------------- */
|
||||
html {
|
||||
position: relative;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
/* Margin bottom by footer height */
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
.footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
line-height: 60px; /* Vertically center the text there */
|
||||
}
|
||||
textarea {
|
||||
font-family: 'Roboto Mono', monospace;
|
||||
}
|
@ -2,24 +2,24 @@
|
||||
|
||||
var connection = new signalR.HubConnectionBuilder().withUrl("/codeHub").build();
|
||||
|
||||
let $code = $('#code');
|
||||
let $mirror = $('#mirror');
|
||||
//let $code = $('#code');
|
||||
//let $mirror = $('#mirror');
|
||||
|
||||
$('#code').keyup(function () {
|
||||
//$('#code').keyup(function () {
|
||||
|
||||
let user = 'ryan';
|
||||
let message = $code.val();
|
||||
// let user = 'ryan';
|
||||
// let message = $code.val();
|
||||
|
||||
connection.invoke("SendMessage", user, message).catch(function (err) {
|
||||
return console.error(err.toString());
|
||||
});
|
||||
});
|
||||
// connection.invoke("SendMessage", user, message).catch(function (err) {
|
||||
// return console.error(err.toString());
|
||||
// });
|
||||
//});
|
||||
|
||||
connection.on("ReceiveMessage", function (user, message) {
|
||||
//connection.on("ReceiveMessage", function (user, message) {
|
||||
|
||||
$mirror.val(message);
|
||||
// $mirror.val(message);
|
||||
|
||||
});
|
||||
//});
|
||||
|
||||
connection.start().then(function () {
|
||||
//$('#send').prop('disabled', false);
|
||||
|
1
BinaryDad.Coding/wwwroot/js/jotted/jotted.min.js
vendored
Normal file
1
BinaryDad.Coding/wwwroot/js/jotted/jotted.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user