This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
/* 1 */ | |
body {color: red;} | |
p {color: blue;} | |
/* Answer: --- | |
blue - тег p переопределяет цвет | |
*/ | |
/* 2 */ | |
p {color: red;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body,html | |
{ | |
width: 100%; | |
} | |
.navigation | |
{ | |
list-style: none; | |
font-family: Helvetica,Verdana; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var day = 0, active = 0, deactive = 1; | |
for (;day <= 50; day++) | |
{ | |
console.log(day + " " + (active + deactive) + " " + active + " " + deactive); | |
if (day % 2 === 1) { | |
var temp = active; | |
active = deactive + active; | |
deactive = temp; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h" | |
#include <WinSock2.h> | |
#include <iostream> | |
#include <conio.h> | |
#define BUFSIZE 1024 | |
using namespace std; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.fast-start { | |
width: 400px; | |
height: 10px; | |
margin: 10px 20px; | |
background-color: #dfdfdf; | |
cursor: pointer; | |
} | |
.fast-start-carriage { | |
width: 10px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="fast-start js-fast-start"> | |
<div class="fast-start-carriage"></div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UICarriage.create( | |
$('.js-fast-start'), | |
{ | |
maxOffset: 390 | |
} | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.js-fast-start').on('carriage:move', function(e, eventArgs) { | |
console.log(eventArgs); | |
}); | |
UICarriage.create( | |
$('.js-fast-start'), | |
{ | |
maxOffset: 390, | |
carriageMoveEvent: 'carriage:move' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.input-example { | |
width: 400px; | |
} | |
.input-block { | |
width: 100%; | |
height: 10px; | |
cursor: pointer; | |
background-color: #fff; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.js-input-linear-segments-carriage').on('carriage:move', function(e, args) { | |
$('.js-input-linear-segments').val(args.value); | |
}); | |
UICarriage.create( | |
$('.js-input-linear-segments-carriage'), | |
{ | |
maxOffset: 390, | |
carriageMoveEvent: 'carriage:move', | |
segments: [{offset: 0, value: 0}, |
OlderNewer