По установке на СЦЕНУ: всё от сюда подходит , т.е. если будете использовать и на сценах тоже, то нужно только использовать для отображения в коде: %TodoList.StreamingCode%Aleks130699 писал(а):....
А как на сцену установить?
в Дополнительный код CSS:
Код: Выделить всё
@import url("https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css");
#list {
position: relative;
}
#list .new #newtask {
float: left;
width: calc(100% - 100px);
height: 100px;
padding: 0;
margin: 0;
outline: 0;
border: 0;
background: #222;
line-height: 50px;
text-indent: 25px;
}
#list .new input {
font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
font-size: 32px;
color: #FFF;
text-align: justify;
line-height: normal;
/* font-smoothing: antialiased; */
}
#list .new #newtask::-webkit-input-placeholder {
color: rgba(255, 255, 255, 0.5);
}
#list .new button {
cursor: pointer;
float: right;
width: 100px;
height: 100px;
padding: 0;
margin: 0;
outline: 0;
border: 0;
background: #111111;
font-size: 84px;
color: #FFF;
}
#list .list .item {
clear: both;
height: 50px;
}
#list .list .item input {
cursor: default;
float: left;
width: calc(100% - 150px);
height: 50px;
padding: 0;
margin: 0;
outline: 0;
border: 0;
background: transparent;
text-indent: 25px;
font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
font-size: 20pt;
color: #FFF;
text-align: justify;
line-height: normal;
}
#list .list .item input.checked {
opacity: .5;
text-decoration: line-through;
}
#list .list .item .rightblock {
float: right;
}
#list .list .item button{
cursor: pointer;
float: left;
width: 50px;
height: 50px;
padding: 0;
margin: 0;
outline: 0;
border: 0;
background: rgba(0,0,0,0.1);
font-size: 32px;
color: #FFF;
}
Код: Выделить всё
function btnRunClicked() {
var newtask=$('#newtask').val();
if (newtask) {
$.get( "/objects/", { object:"TodoList", op:"m", m:"new", task:newtask } );
return false;
}
}
function checkClicked(ctask) {
if (ctask) {
$.get( "/objects/", { object:"TodoList", op:"m",m:"check", task:ctask } );
return false;
}
}
function deleteClicked(dtask) {
if (dtask) {
$.get( "/objects/", { object:"TodoList", op:"m", m:"delete", task:dtask } );
return false;
}
}