<div class="wrapper"></div>
.wrapper {
color: red;
width: 100%;
margin-top: 10px;
}
function getStyle(className) {
var classes = document.styleSheets[0].rules || document.styleSheets[0].cssRules;
for (var x = 0; x < classes.length; x++) {
if (classes[x].selectorText == className) {
(classes[x].cssText) ? alert(classes[x].cssText) : alert(classes[x].style.cssText);
}
}
}
getStyle('.wrapper');
var ms = $('.catalog_lattice');
var params = mSearch2.Hash.get();
params['action'] = 'filter';
params['pageId'] = mse2Config.pageId;
params['key'] = mse2Config.key;
ms.miniScroll({
limit: 5,
controllerUrl: 'assets/components/msearch2/action.php',
responceType: 'json',
dop: params,
preloderPath: 'assets/templates/ikeds/img/loader.gif',
success: function (responce, elm) {
if (responce.data.results) {
elm.find('.pager').before(responce.data.results);
}
}
});
<div class="wrapper"></div>
body,html {
width: 100%;
height: 100%;
}
.wrapper {
width: 100%;
height: 100%;
transition: background 1s;
background: none;
}
(function (w, d) {
w.onload = function () {
var wp = d.querySelector('.wrapper'),
colors = ['yellow', 'red', 'green', 'blue'],
ln = colors.length;
var changeColor = function (i) {
if (i < ln) {
setTimeout(function () {
wp.style.cssText = "background: " + colors[i] +";";
i++;
changeColor(i);
}, 2000);
} else {
changeColor(0);
}
};
changeColor(0);
};
}(window, document));
<div class="treangle">
<div class="treangle--left"></div>
<div class="treangle--right"></div>
</div>
body, html {
height: 100%;
width: 100%;
}
.treangle {
width: 100%;
height: 100%;
position: relative;
background-color: #000;
overflow: hidden;
[class*='treangle--'] {
width: 100%;
height: 50%;
position: absolute;
background-color: yellow;
}
.treangle--left {
float: left;
left: -50%;
transform: rotate(20deg);
transform: matrix(-1, -0.2, 0, 1, 0, 0);
}
.treangle--right {
float: right;
right: -50%;
transform: rotate(-20deg);
transform: matrix(1, -0.2, 0, 1, 0, 0);
}
}
$("div#" + thisColID + " div:first-child").attr('id');
var getBlockInColumn = function() {
var thisColID = $(this).attr('id'), children = $("div#" + thisColID).children();
if (children.length) {
alert($(children[0]).attr('id'));
}
};
$(document).ready(function(){
$(".column").on("click",getBlockInColumn);
});