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
| // MODEL | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using Umbraco.Core.Models; | |
| using Umbraco.Web; | |
| using Umbraco.Web.Models; | |
| namespace Cultiv.Models | |
| { | |
| public class BlogOverview : RenderModel |
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
| function retry(isDone, next) { | |
| var current_trial = 0, max_retry = 50, interval = 10, is_timeout = false; | |
| var id = window.setInterval( | |
| function() { | |
| if (isDone()) { | |
| window.clearInterval(id); | |
| next(is_timeout); | |
| } | |
| if (current_trial++ > max_retry) { | |
| window.clearInterval(id); |
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
| <!-- | |
| Refer to this article for more information: | |
| http://knowledge.vidyard.com/Core_Features/Publish_your_players/011_Publish_your_player/014_Dynamically_resize_the_inline_player | |
| --> | |
| <html> | |
| <head> | |
| <style type="text/css"> | |
| .innerContainer { | |
| position: relative; | |
| display: block; |
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 myJSON, baseURL = "http://192.168.1.90:3480/data_request?id=lu_status2&DataVersion=1&DeviceNum="; | |
| function requestData(deviceNum) { | |
| CF.request(baseURL + deviceNum, function(status, headers, body) { | |
| if (status == 200) { | |
| // OK response received, now grab the JSON string from body and turn it into an object | |
| myJSON = JSON.parse(body); | |
| // Now assign one of the known state variables to a serial join (if it will always be at a certain index in the state array) |
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
| @helper RenderLink(string href, string title, string target, string text) | |
| { | |
| <a href="@(href)" title="@(title)" target="@(target)">@(text)</a> | |
| } |
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
| @model Epiphany.Web.Models.PagerViewModel | |
| @{ | |
| var showPages = 5; | |
| var maxPage = (int) Math.Ceiling((decimal) Model.Total/Model.PageSize); | |
| } | |
| @*[[ PAGER PAGE:@Model.Page PAGESIZE:@Model.PageSize TOTAL:@Model.Total MAXPAGE:@maxPage ]]*@ | |
| <div class="pagination"> |
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
| @inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
| @{ | |
| Layout = null; | |
| Response.ContentType = "text/xml"; | |
| }<xml version="1.0" encoding="UTF-8"> | |
| <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
| <url> | |
| <loc>http://www.example.com/</loc> | |
| <lastmod>2005-01-01</lastmod> | |
| <changefreq>monthly</changefreq> |
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
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
| <title>Sample2</title> | |
| <script language="JavaScript" type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.js"></script> | |
| </head> | |
| <body> | |
| <div> | |
| <p>Make sure you've got the dev console open or you won't see my messages.</p> | |
| <button id="positionButton">Get position</button> |
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
| <div id="banner"> | |
| <div class="wrap-center"> | |
| <div class="banner-centered" id="banner-text"> | |
| <h2>Hello <strong>We Are Company-Name</strong>, Glad To See You. :-)</h2> | |
| </div> | |
| </div> | |
| </div> |
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
| using System; | |
| using System.Web; | |
| using System.Web.Services; | |
| using System.Collections; | |
| using System.Web.Services.Protocols; | |
| using umbraco.cms.businesslogic; | |
| using umbraco.cms.businesslogic.web; | |
| using umbraco.BusinessLogic; | |
| using System.Xml.Serialization; | |
| using umbraco.cms.businesslogic.property; |