This file contains hidden or 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 data = this.context.binding ? this.context.binding.get("value") : null; | |
if (data) { | |
// ваш код | |
} | |
// Чтение параметра | |
var title = this.context.options.title ? this.context.options.title.get("value") : null; | |
if (title) { | |
// ваш код | |
} |
This file contains hidden or 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
// Удаляем все пробелы, используя | |
// регулярные выражения в JavaScript (RegEx): | |
var text3 = " a b c d e f g "; | |
var newText3 = text3.replace(/\s+/g, ''); |
This file contains hidden or 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
a{ | |
-webkit-transition: border-color 200ms, width 250ms; | |
-moz-transition: border-color 200ms, width 250ms; | |
transition: border-color 200ms, width 250ms; | |
} |
This file contains hidden or 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
User-Agent: SputnikBot; | |
Disallow:/ |
This file contains hidden or 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
$fancybox.fancybox({ | |
openEffect: 'none', | |
closeEffect: 'none', | |
prevEffect: 'none', | |
nextEffect: 'none', | |
keys : { | |
next: null, | |
prev: null, | |
close : null | |
} |
This file contains hidden or 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
// Проверка версии jQuery | |
jQuery.fn.jquery | |
// Проверка версии jQuery UI | |
$.ui.version |
This file contains hidden or 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
// Хак для перевода RGB в HEX | |
$.cssHooks.backgroundColor = { | |
get: function (elem) { | |
if (elem.currentStyle) | |
var bg = elem.currentStyle["backgroundColor"]; | |
else if (window.getComputedStyle) | |
var bg = document.defaultView.getComputedStyle(elem, | |
null).getPropertyValue("background-color"); | |
if (bg.search("rgb") == -1) | |
return bg; |
This file contains hidden or 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
<%@ Page language="C#" MasterPageFile="../_catalogs/masterpage/homePageMaster.master" | |
Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document" meta:webpartpageexpansion="full"%> | |
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> | |
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> | |
<asp:Content ID="Content1" ContentPlaceHolderId="PlaceHolderMain" runat="server"> | |
<WebPartPages:WebPartZone runat="server" ID="webZone1" CssClass="ms-hide" Title="Новости"> | |
<ZoneTemplate></ZoneTemplate> | |
</WebPartPages:WebPartZone> |
This file contains hidden or 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
/* gradient */ | |
.gradient(@from: #000, @to: #fff) { | |
background-color: @from; | |
background-image: -webkit-gradient(linear, left top, left bottom, from(@from), to(@to)); | |
background-image: -webkit-linear-gradient(top, @from, @to); | |
background-image: -moz-linear-gradient(top, @from, @to); | |
background-image: -o-linear-gradient(top, @from, @to); | |
background-image: linear-gradient(to bottom, @from, @to); | |
} |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Сетка</title> | |
<meta name="viewport" content="initial-scale = 1.0,maximum-scale = 1.0"/> | |
<link rel="stylesheet" href="grid.css"/> | |
<style> | |
.module{ | |
padding: 1em; |
NewerOlder