Skip to content

Instantly share code, notes, and snippets.

"value": {
"Parbatipur, Rangpur Division": 1,
"Santiago de Cali, Valle del Cauca": 1,
"Dhaka, Dhaka Division": 25,
"Bishkek, Bishkek": 2,
"Narsingdi, Dhaka Division": 2,
"Gournadi, Dhaka Division": 2,
"Fort Lauderdale, Florida": 1,
"Isfahan, Isfahan Province": 1,
"Dinajpur, Rangpur Division": 3,
using System.Web.Mvc;
namespace SerialTracker.Web.SiteMap
{
public interface ISiteMapItem
{
string GetAddress(UrlHelper Url, string siteAddress);
string ChangeFreq
{
@zdarovka
zdarovka / core-list with detail.html
Created March 30, 2015 08:47
Core-list with transition to detail
<core-animated-pages fit selected="{{view}}">
<section>
<core-list on-core-activate="{{selectView}}">
<my-item></my-item>
</core-list>
</section>
<section>
<my-item-detail data="{{selectedItem}}"></my-item-detail>
</section>
@zdarovka
zdarovka / import_webcomponents.js
Created March 23, 2015 20:26
Webcomponents polyfill
if ("registerElement" in document
&& "createShadowRoot" in HTMLElement.prototype
&& "import" in document.createElement("link")
&& "content" in document.createElement("template")) {
// We're using a browser with native WC support!
} else {
document.write('<script src="bower_components/webcomponentsjs/webcomponents.js"><\/script>');
}
@zdarovka
zdarovka / Usage.html
Last active April 18, 2018 05:58
Pageable-content element based on core-list
<st-pageable-content id="pageableContent"
urltemplate="/Episodes/Page-{page}" appurltemplate="/serials/{page}" currentpage="{{currentPage}}" dataname="episode"
data="{{data}}" width="400" height="170" grid on-core-activate="{{selectView}}">
<template>
<st-episode-tile data="{{model}}"></st-episode-tile>
</template>
</st-pageable-content>
<polymer-element name="st-pageable-content" attributes="urlTemplate appUrlTemplate dataname currentPage" extends="core-list">
<template>
<style>
:host {
display: block;
height: 100%;
}
</style>
<content></content>