<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-954701964661625078</atom:id><lastBuildDate>Thu, 03 Feb 2022 04:00:07 +0000</lastBuildDate><category>SharePoint</category><category>Tips and Tricks</category><category>JavaScript</category><category>ASP.NET</category><category>jQuery</category><category>Sql Server</category><category>James&#39; Best Practices</category><category>CSS</category><category>MOSS 2007</category><category>MVC</category><category>Examples</category><category>SharePoint Designer</category><category>xsl</category><category>.NET</category><category>AJAX</category><category>SharePoint 2010</category><category>UI</category><category>HTML</category><category>SubSonic</category><category>SP Errors</category><category>other stuff</category><category>Adobe</category><category>Dev Tools</category><category>Fireworks</category><category>Kendo</category><category>LinqToSQL</category><category>Telerik</category><category>UX</category><category>Visual Studio</category><category>Walkthroughs</category><category>WebParts</category><category>cqwp</category><category>IDE</category><category>KnockoutJs</category><category>Microsoft</category><category>Mossquito</category><category>Presentations</category><category>Profiles</category><category>SharePoint 2007</category><category>VS TFS</category><category>ASP</category><category>Beta</category><category>Forms</category><category>Graphics</category><category>Hacks</category><category>IndyNDA</category><category>Master Pages</category><category>Minify</category><category>Office 365</category><category>Random</category><category>SPSIndy</category><category>Server 2003</category><category>SharePoint 2013</category><category>Virtual Server 2005</category><category>Windows</category><category>XP</category><category>flash</category><category>funny</category><category>oracle</category><category>php</category><category>social cow</category><category>virtual pc 2007</category><category>.NET Errors</category><category>ADO.NET</category><category>Authentication</category><category>Bootstrap</category><category>CAML</category><category>Caching</category><category>Class Library</category><category>CodePlex</category><category>Configuration</category><category>Internet Browsers</category><category>JSON</category><category>K2</category><category>Kendo UI</category><category>Kendo UI Mobile</category><category>Learn</category><category>Links</category><category>Metro</category><category>OS</category><category>Pines Notify</category><category>PowerShell</category><category>Reviews</category><category>Routing</category><category>SP Test Data Population Tool</category><category>Scheduler</category><category>SharePoint 2001</category><category>SharePoint 2003</category><category>Sql Express</category><category>Sql Server Data Services</category><category>Top List</category><category>Videos</category><category>XML</category><category>YUI Compressor</category><category>actionscript</category><category>cms</category><category>epic fail</category><category>facebook</category><category>modx</category><category>mysql</category><category>outlook</category><category>sql developer</category><category>symantec</category><title>James&#39; Sandbox</title><description>Kickin&#39; sand in the world of UX, JavaScript and ASP.NET MVC</description><link>http://www.jwc3.net/</link><managingEditor>noreply@blogger.com (Anonymous)</managingEditor><generator>Blogger</generator><openSearch:totalResults>135</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-4386416339120873184</guid><pubDate>Fri, 13 Jun 2014 12:30:00 +0000</pubDate><atom:updated>2014-06-13T08:30:03.313-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">Examples</category><category domain="http://www.blogger.com/atom/ns#">Kendo UI</category><category domain="http://www.blogger.com/atom/ns#">Kendo UI Mobile</category><category domain="http://www.blogger.com/atom/ns#">MVC</category><title>Kendo UI Mobile with ASP.NET MVC 5 (plus KnockoutJs and Bootstrap)</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-SIodYrkJQE0/T6KY8Cgr_nI/AAAAAAAAAdI/JAqRMiTiMLo/s1600/net_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-SIodYrkJQE0/T6KY8Cgr_nI/AAAAAAAAAdI/JAqRMiTiMLo/s200/net_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Since I did a post already on using &lt;a href=&quot;http://www.jwc3.net/2014/06/kendo-ui-2014-with-mvc-5-bootstrap.html&quot;&gt;Kendo UI with ASP.NET MVC 5&lt;/a&gt; (and other technologies), I figured that I would show how to setup the Kendo UI Mobile version with ASP.NET MVC 5 mobile.  It&#39;s not too bad, but there are some weird things to those of use that are not used to working with mobile-specific pages.  If you have already set up your site to use Kendo UI (like in my &lt;a href=&quot;http://www.jwc3.net/2014/06/kendo-ui-2014-with-mvc-5-bootstrap.html&quot;&gt;previous post&lt;/a&gt;), then all we have to do is tell the MVC 5 web application that we want to use mobile pages as well. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;The shortcut&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;PM&gt; Install-Package jquery.mobile.mvc &lt;/code&gt;&lt;/pre&gt;Install jQuery.Mobile.MVC Nuget package in MVC from the Package Manager Console (Tools &gt; Library Package Manger &gt; Package Manager Console).  Even though we are using Kendo UI mobile as our defacto framework, installing this package helps get the setup done faster than doing it by hand, so why not? :) &lt;br/&gt;&lt;br/&gt;When installing the jquery.mobile.mvc nuget package in MVC, it does some of the ground work for preparing our MVC 5 web application to support mobile pages along side our full desktop-view pages.   &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Modify the Global.asax (in root of web application)&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;using System;&lt;br /&gt;using System.Linq;&lt;br /&gt;using System.Web.Http;&lt;br /&gt;using System.Web.Mvc;&lt;br /&gt;using System.Web.Optimization;&lt;br /&gt;using System.Web.Routing;&lt;br /&gt;&lt;br /&gt;namespace MyApp&lt;br /&gt;{&lt;br /&gt;    // Note: For instructions on enabling IIS6 or IIS7 classic mode, &lt;br /&gt;    // visit http://go.microsoft.com/?LinkId=9394801&lt;br /&gt;&lt;br /&gt;    public class MvcApplication : System.Web.HttpApplication&lt;br /&gt;    {&lt;br /&gt;        protected void Application_Start()&lt;br /&gt;        {&lt;br /&gt;            AreaRegistration.RegisterAllAreas();&lt;br /&gt;&lt;br /&gt;            WebApiConfig.Register(GlobalConfiguration.Configuration);&lt;br /&gt;            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);&lt;br /&gt;            RouteConfig.RegisterRoutes(RouteTable.Routes);&lt;br /&gt;            BundleConfig.RegisterBundles(BundleTable.Bundles);&lt;br /&gt;            BundleMobileConfig.RegisterBundles(BundleTable.Bundles); // Just added the BundleMobleConfig&lt;br /&gt;            AuthConfig.RegisterAuth();&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;/code&gt;&lt;/pre&gt;After we installed the jquery.mobile.mvc package, it should have loaded a text file stating that we need to add another configuration registration call &quot;BundleMobileConfig&quot;.  This will allow us to load separate JavaScript and CSS files than we use in our Desktop-view MVC site.  So, when you made this change, just close the global.asax as we don&#39;t need it anymore for our mobile pages. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;/App_Start/BundleMobileConfig.cs (default setup)&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;The default bundles for the mobile configuration just have the basics: jquery.mobile, jquery.mobile css, and the custom site.mobile.css.  Not much here, but it will work for a basic mobile site. &lt;br/&gt;&lt;br/&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;using System.Web;&lt;br /&gt;using System.Web.Optimization;&lt;br /&gt;&lt;br /&gt;namespace TestMvcApplication1 {&lt;br /&gt;    public class BundleMobileConfig {&lt;br /&gt;        public static void RegisterBundles(BundleCollection bundles) {&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/jquerymobile&amp;quot;)&lt;br /&gt;                .Include(&amp;quot;~/Scripts/jquery.mobile-{version}.js&amp;quot;));&lt;br /&gt;&lt;br /&gt;            bundles.Add(new StyleBundle(&amp;quot;~/Content/Mobile/css&amp;quot;)&lt;br /&gt;                .Include(&amp;quot;~/Content/Site.Mobile.css&amp;quot;));&lt;br /&gt;            &lt;br /&gt;            bundles.Add(new StyleBundle(&amp;quot;~/Content/jquerymobile/css&amp;quot;)&lt;br /&gt;                .Include(&amp;quot;~/Content/jquery.mobile-{version}.css&amp;quot;));&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;/code&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;/App_Start/BundleMobileConfig.cs (custom setup with Kendo UI, KnockoutJs, Bootstrap and CDN(s))&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;using System.Web;&lt;br /&gt;using System.Web.Optimization;&lt;br /&gt;&lt;br /&gt;namespace MyApp.Web {&lt;br /&gt;    public class BundleMobileConfig {&lt;br /&gt;        public static void RegisterBundles(BundleCollection bundles) {&lt;br /&gt;&lt;br /&gt;            BundleTable.EnableOptimizations = true;&lt;br /&gt;&lt;br /&gt;            // Enable CDN Support&lt;br /&gt;            bundles.UseCdn = true;&lt;br /&gt;&lt;br /&gt;            var jqueryCdnPath = &amp;quot;https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.1.min.js&amp;quot;;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/jquery&amp;quot;, jqueryCdnPath).Include(&amp;quot;~/Scripts/jquery-2.1.1.min.js&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var jqueryMobileCdnPath = &amp;quot;https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.4.2/jquery.mobile-1.4.2.min.js&amp;quot;;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/jqueryMobile&amp;quot;, jqueryMobileCdnPath).Include(&amp;quot;~/Scripts/jquery.mobile-1.4.2.min.js&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var jqueryValidateCdnPath = &amp;quot;https://ajax.aspnetcdn.com/ajax/jquery.validate/1.12.0/jquery.validate.min.js&amp;quot;;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/jqueryValidate&amp;quot;, jqueryValidateCdnPath).Include(&amp;quot;~/Scripts/jquery.validate.min.js&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var bootstrapCdnPath = &amp;quot;https://ajax.aspnetcdn.com/ajax/bootstrap/3.1.1/bootstrap.min.js&amp;quot;;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/bootstrap&amp;quot;, bootstrapCdnPath).Include(&amp;quot;~/Scripts/bootstrap.min.js&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var respondCdnPath = &amp;quot;https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js&amp;quot;;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/respond&amp;quot;, respondCdnPath).Include(&amp;quot;~/Scripts/respond.js&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var knockoutCdnPath = &amp;quot;https://ajax.aspnetcdn.com/ajax/knockout/knockout-3.1.0.js&amp;quot;;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/knockout&amp;quot;, knockoutCdnPath).Include(&amp;quot;~/Scripts/knockout-3.1.0.js&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var kendoAllCdnPath = &amp;quot;https://da7xgjtj801h2.cloudfront.net/2014.1.416/js/kendo.all.min.js&amp;quot;;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/kendoAll&amp;quot;, kendoAllCdnPath).Include(&amp;quot;~/Scripts/kendo.all.min.js&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var kendoMvcCdnPath = &amp;quot;https://da7xgjtj801h2.cloudfront.net/2014.1.416/js/kendo.aspnetmvc.min.js&amp;quot;;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/kendoMvc&amp;quot;, kendoMvcCdnPath).Include(&amp;quot;~/Scripts/kendo.aspnetmvc.min.js&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var kendoTimeCdnPath = &amp;quot;https://da7xgjtj801h2.cloudfront.net/2014.1.416/js/kendo.timezones.min.js&amp;quot;;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/kendoTime&amp;quot;, kendoTimeCdnPath).Include(&amp;quot;~/Scripts/kendo.timezones.min.js&amp;quot;));&lt;br /&gt;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/mjq&amp;quot;).Include(&lt;br /&gt;                 &amp;quot;~/Scripts/MyApp.mobile.core.js&amp;quot;&lt;br /&gt;                ));&lt;br /&gt;&lt;br /&gt;            var jqueryMobileCSSCdnPath = &amp;quot;https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.4.2/jquery.mobile.theme-1.4.2.min.css&amp;quot;;&lt;br /&gt;            bundles.Add(new StyleBundle(&amp;quot;~/Content/jqueryMobile&amp;quot;, jqueryMobileCSSCdnPath).Include(&amp;quot;~/Content/jquery.mobile-1.4.2.css&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var bootstrapCSSCdnPath = &amp;quot;https://ajax.aspnetcdn.com/ajax/bootstrap/3.1.1/css/bootstrap.min.css&amp;quot;;&lt;br /&gt;            bundles.Add(new StyleBundle(&amp;quot;~/Content/bootstrap&amp;quot;, bootstrapCSSCdnPath).Include(&amp;quot;~/Content/bootstrap.min.css&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var bootstrapThemeCSSCdnPath = &amp;quot;https://ajax.aspnetcdn.com/ajax/bootstrap/3.1.1/css/bootstrap-theme.min.css&amp;quot;;&lt;br /&gt;            bundles.Add(new StyleBundle(&amp;quot;~/Content/bootstrapTheme&amp;quot;, bootstrapThemeCSSCdnPath).Include(&amp;quot;~/Content/bootstrap-theme.min.css&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var kendoCommonCSSCdnPath = &amp;quot;https://da7xgjtj801h2.cloudfront.net/2014.1.416/styles/kendo.common.min.css&amp;quot;;&lt;br /&gt;            bundles.Add(new StyleBundle(&amp;quot;~/Content/kendoCommon&amp;quot;, kendoCommonCSSCdnPath).Include(&amp;quot;~/Content/kendo.common.min.css&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var kendoCommonBootstrapCSSCdnPath = &amp;quot;https://da7xgjtj801h2.cloudfront.net/2014.1.416/styles/kendo.common-bootstrap.min.css&amp;quot;;&lt;br /&gt;            bundles.Add(new StyleBundle(&amp;quot;~/Content/kendoCommonBootstrap&amp;quot;, kendoCommonBootstrapCSSCdnPath).Include(&amp;quot;~/Content/kendo.common-bootstrap.min.css&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var kendoBootstrapCSSCdnPath = &amp;quot;https://da7xgjtj801h2.cloudfront.net/2014.1.416/styles/kendo.bootstrap.min.css&amp;quot;;&lt;br /&gt;            bundles.Add(new StyleBundle(&amp;quot;~/Content/kendoBootstrap&amp;quot;, kendoBootstrapCSSCdnPath).Include(&amp;quot;~/Content/kendo.bootstrap.min.css&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var kendoBootstrapMobileCSSCdnPath = &amp;quot;https://da7xgjtj801h2.cloudfront.net/2014.1.416/styles/kendo.bootstrap.mobile.min.css&amp;quot;;&lt;br /&gt;            bundles.Add(new StyleBundle(&amp;quot;~/Content/kendoBootstrapMobile&amp;quot;, kendoBootstrapMobileCSSCdnPath).Include(&amp;quot;~/Content/kendo.bootstrap.mobile.min.css&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var kendoMobileCSSCdnPath = &amp;quot;https://da7xgjtj801h2.cloudfront.net/2014.1.416/styles/kendo.mobile.all.min.css&amp;quot;;&lt;br /&gt;            bundles.Add(new StyleBundle(&amp;quot;~/Content/kendoMobile&amp;quot;, kendoMobileCSSCdnPath).Include(&amp;quot;~/Content/kendo.mobile.all.min.css&amp;quot;));&lt;br /&gt;&lt;br /&gt;            bundles.Add(new StyleBundle(&amp;quot;~/Content/mcss&amp;quot;).Include(&lt;br /&gt;                    &amp;quot;~/Content/Site.Mobile.css&amp;quot;));&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;/code&gt;&lt;/pre&gt;Yep.  With the addition of the CDNs, there&#39;s lots of stuff here.  You notice that I&#39;m also pulling in the full versions of JavaScript with the mobile versions (in some cases).  The reason behind this is that the mobile versions, generally are just extensions of the bigger JavaScript library version, and are dependents, so we have to include them too.  The bigger differences are with the CSS files as being mobile-specific, the styles are definitely different.  &lt;i&gt;It&#39;s worth noting that I wanted my Bootstrap navigation system to be used in my application setup, so that&#39;s why I have the bootstrap JavaScript and CSS files, but you don&#39;t need those if you do not want to use that navigation style.&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;/Views/Shared/_Layout.Mobile.cshtml (default setup)&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;This is the default layout setup that is created for you when you install the jquery.mobile.mvc nuget package.  It already references bundles in the BundleMobileConfig that we modified earlier.  Also, it references the Partial View of &quot;_ViewSwitcher&quot; which is a handy little partial view that allows a Mobile user to switch to the main MVC Desktop views if they wish to do so. &lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt; &lt;br /&gt;&amp;lt;html&amp;gt; &lt;br /&gt;    &amp;lt;head&amp;gt; &lt;br /&gt;        &amp;lt;meta charset=&amp;quot;utf-8&amp;quot; /&amp;gt;&lt;br /&gt;        &amp;lt;title&amp;gt;@ViewBag.Title&amp;lt;/title&amp;gt; &lt;br /&gt;        &amp;lt;meta name=&amp;quot;viewport&amp;quot; content=&amp;quot;width=device-width&amp;quot; /&amp;gt;&lt;br /&gt;        @Styles.Render(&amp;quot;~/Content/Mobile/css&amp;quot;, &amp;quot;~/Content/jquerymobile/css&amp;quot;)&lt;br /&gt;        @Scripts.Render(&amp;quot;~/bundles/jquery&amp;quot;, &amp;quot;~/bundles/jquerymobile&amp;quot;)&lt;br /&gt;        &amp;lt;script&amp;gt;&lt;br /&gt;            $(document).ready(function () {&lt;br /&gt;                $.mobile.ajaxEnabled = false; &lt;br /&gt;            });&lt;br /&gt;        &amp;lt;/script&amp;gt;&lt;br /&gt;    &amp;lt;/head&amp;gt; &lt;br /&gt;&amp;lt;body&amp;gt; &lt;br /&gt;&lt;br /&gt;    &amp;lt;div data-role=&amp;quot;page&amp;quot; data-theme=&amp;quot;a&amp;quot;&amp;gt;&lt;br /&gt;        @Html.Partial(&amp;quot;_ViewSwitcher&amp;quot;)&lt;br /&gt;&lt;br /&gt;        &amp;lt;div data-role=&amp;quot;header&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;h1&amp;gt;@ViewBag.Title&amp;lt;/h1&amp;gt;&lt;br /&gt;        &amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;        &amp;lt;div data-role=&amp;quot;content&amp;quot;&amp;gt;&lt;br /&gt;            @RenderSection(&amp;quot;featured&amp;quot;, false)&lt;br /&gt;            @RenderBody()  &lt;br /&gt;        &amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;/Views/Shared/_Layout.Mobile.cshtml (custom setup with Kendo UI, KnockoutJs and Bootstrap)&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;    &amp;lt;meta http-equiv=&amp;quot;X-UA-Compatible&amp;quot; content=&amp;quot;IE=edge&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;meta charset=&amp;quot;utf-8&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;title&amp;gt;@ViewBag.Title&amp;lt;/title&amp;gt;&lt;br /&gt;&lt;br /&gt;    @Styles.Render(&amp;quot;~/Content/jqueryMobile&amp;quot;)&lt;br /&gt;    @Styles.Render(&amp;quot;~/Content/kendoCommon&amp;quot;)&lt;br /&gt;    @Styles.Render(&amp;quot;~/Content/kendoCommonBootstrap&amp;quot;)&lt;br /&gt;    @Styles.Render(&amp;quot;~/Content/kendoBootstrap&amp;quot;)&lt;br /&gt;    @Styles.Render(&amp;quot;~/Content/kendoBootstrapMobile&amp;quot;)&lt;br /&gt;    @Styles.Render(&amp;quot;~/Content/kendoMobile&amp;quot;)&lt;br /&gt;    @Styles.Render(&amp;quot;~/Content/bootstrap&amp;quot;)&lt;br /&gt;    @Styles.Render(&amp;quot;~/Content/bootstrapTheme&amp;quot;)&lt;br /&gt;    @Styles.Render(&amp;quot;~/Content/mcss&amp;quot;)&lt;br /&gt;&lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/jquery&amp;quot;)&lt;br /&gt;    &amp;lt;script&amp;gt;&lt;br /&gt;        if (typeof jQuery == &amp;quot;undefined&amp;quot;) { document.write(decodeURIComponent(&#39;%3Cscript src=&amp;quot;/Scripts/jquery-2.1.1.min.js&amp;quot; %3E%3C/script%3E&#39;)) }&lt;br /&gt;    &amp;lt;/script&amp;gt; &lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/jqueryValidate&amp;quot;)&lt;br /&gt;    &amp;lt;script&amp;gt;&lt;br /&gt;        if (!$.validator) { document.write(decodeURIComponent(&#39;%3Cscript src=&amp;quot;/Scripts/jquery.validate.min.js&amp;quot; %3E%3C/script%3E&#39;)) }&lt;br /&gt;    &amp;lt;/script&amp;gt; &lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/knockout&amp;quot;)&lt;br /&gt;    &amp;lt;script&amp;gt;&lt;br /&gt;        if (!window.ko) { document.write(decodeURIComponent(&#39;%3Cscript src=&amp;quot;/Scripts/knockout-3.1.0.js&amp;quot; %3E%3C/script%3E&#39;)) }&lt;br /&gt;    &amp;lt;/script&amp;gt;&lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/kendoAll&amp;quot;)&lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/kendoMvc&amp;quot;)&lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/kendoTime&amp;quot;)&lt;br /&gt;    &amp;lt;script&amp;gt;&lt;br /&gt;        if (typeof kendo == &amp;quot;undefined&amp;quot;) { document.write(decodeURIComponent(&#39;%3Clink rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;/Content/kendo.common.min.css&amp;quot; %3C/%3E&#39;)); document.write(decodeURIComponent(&#39;%3Clink rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;/Content/kendo.common-bootstrap.min.css&amp;quot; %3C/%3E&#39;)); document.write(decodeURIComponent(&#39;%3Clink rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;/Content/kendo.bootstrap.min.css&amp;quot; %3C/%3E&#39;)); document.write(decodeURIComponent(&#39;%3Clink rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;/Content/kendo.bootstrap.mobile.min.css&amp;quot; %3C/%3E&#39;)); document.write(decodeURIComponent(&#39;%3Clink rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;/Content/kendo.mobile.all.min.css&amp;quot; %3C/%3E&#39;)); document.write(decodeURIComponent(&#39;%3Cscript src=&amp;quot;/Scripts/kendo.all.min.js&amp;quot; %3E%3C/script%3E&#39;)); document.write(decodeURIComponent(&#39;%3Cscript src=&amp;quot;/Scripts/kendo.aspnetmvc.min.js&amp;quot; %3E%3C/script%3E&#39;)); document.write(decodeURIComponent(&#39;%3Cscript src=&amp;quot;/Scripts/kendo.timezones.min.js&amp;quot; %3E%3C/script%3E&#39;)) }&lt;br /&gt;    &amp;lt;/script&amp;gt;&lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/mjq&amp;quot;)&lt;br /&gt;&lt;br /&gt;    @RenderSection(&amp;quot;head&amp;quot;, false)&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;    @(Html.Kendo().MobileLayout()&lt;br /&gt;       .Name(&amp;quot;layout&amp;quot;)&lt;br /&gt;       .Platform(&amp;quot;ios&amp;quot;)&lt;br /&gt;        .Footer(&amp;quot;&amp;quot;)&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;    @(Html.Kendo().MobileLayout()&lt;br /&gt;       .Name(&amp;quot;layout&amp;quot;)&lt;br /&gt;       .Platform(&amp;quot;android&amp;quot;)&lt;br /&gt;        .Footer(&amp;quot;&amp;quot;)&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;    @(Html.Kendo().MobileLayout()&lt;br /&gt;       .Name(&amp;quot;layout&amp;quot;)&lt;br /&gt;       .Platform(&amp;quot;blackberry&amp;quot;)&lt;br /&gt;        .Footer(&amp;quot;&amp;quot;)&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;    @( Html.Kendo().MobileLayout()&lt;br /&gt;       .Name(&amp;quot;layout&amp;quot;)&lt;br /&gt;       .Platform(&amp;quot;wp&amp;quot;)&lt;br /&gt;        .Footer(&amp;quot;&amp;quot;)&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;    @(Html.Kendo().MobileView()&lt;br /&gt;        .Name(&amp;quot;layoutView&amp;quot;)&lt;br /&gt;        .Layout(&amp;quot;layout&amp;quot;)&lt;br /&gt;        .Content(@&amp;lt;text&amp;gt;&lt;br /&gt;                    &amp;lt;div class=&amp;quot;navbar navbar-inverse navbar-fixed-top&amp;quot;&amp;gt;&lt;br /&gt;                        &amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;                            &amp;lt;div class=&amp;quot;navbar-header&amp;quot;&amp;gt;&lt;br /&gt;                                &amp;lt;button type=&amp;quot;button&amp;quot; class=&amp;quot;navbar-toggle&amp;quot; data-toggle=&amp;quot;collapse&amp;quot; data-target=&amp;quot;.navbar-collapse&amp;quot;&amp;gt;&lt;br /&gt;                                    &amp;lt;span class=&amp;quot;icon-bar&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;                                    &amp;lt;span class=&amp;quot;icon-bar&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;                                    &amp;lt;span class=&amp;quot;icon-bar&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;                                &amp;lt;/button&amp;gt;&lt;br /&gt;                                @Html.ActionLink(&amp;quot;Application name&amp;quot;, &amp;quot;Index&amp;quot;, &amp;quot;Home&amp;quot;, new { Area = &amp;quot;&amp;quot; }, new { @class = &amp;quot;navbar-brand&amp;quot; })&lt;br /&gt;                            &amp;lt;/div&amp;gt;&lt;br /&gt;                            &amp;lt;div class=&amp;quot;navbar-collapse collapse&amp;quot;&amp;gt;&lt;br /&gt;                                @Html.Partial(&amp;quot;_Navigation&amp;quot;)&lt;br /&gt;                            &amp;lt;/div&amp;gt;&lt;br /&gt;                        &amp;lt;/div&amp;gt;&lt;br /&gt;                    &amp;lt;/div&amp;gt;&lt;br /&gt;                    &amp;lt;div class=&amp;quot;mTop55&amp;quot;&amp;gt;&lt;br /&gt;                        @RenderBody()&lt;br /&gt;                    &amp;lt;/div&amp;gt;&lt;br /&gt;                &amp;lt;/text&amp;gt;&lt;br /&gt;        )&lt;br /&gt;  )&lt;br /&gt;    &lt;br /&gt;&lt;br /&gt;    &amp;lt;style scoped&amp;gt;&lt;br /&gt;        #layoutView .km-view-title { visibility: inherit; }&lt;br /&gt;        .km-android #layoutView .km-view-title { display: block; position: static; }&lt;br /&gt;    &amp;lt;/style&amp;gt;&lt;br /&gt;&lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/respond&amp;quot;)&lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/bootstrap&amp;quot;)&lt;br /&gt;    &amp;lt;script&amp;gt;&lt;br /&gt;        if (typeof $().emulateTransitionEnd != &amp;quot;function&amp;quot;) { document.write(decodeURIComponent(&#39;%3Clink rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;/Content/bootstrap.min.css&amp;quot; %3C/%3E&#39;)); document.write(decodeURIComponent(&#39;%3Clink rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;/Content/bootstrap-theme.min.css&amp;quot; %3C/%3E&#39;)); document.write(decodeURIComponent(&#39;%3Cscript src=&amp;quot;/Scripts/bootstrap.min.js&amp;quot; %3E%3C/script%3E&#39;)) }&lt;br /&gt;    &amp;lt;/script&amp;gt; &lt;br /&gt;    &amp;lt;script&amp;gt;&lt;br /&gt;        var app = new kendo.mobile.Application(document.body, { layout: &amp;quot;mobile&amp;quot; }); Url = function () { }; Url.prototype = { _relativeRoot: &#39;@Url.Content(&amp;quot;~&amp;quot;)&#39;, resolve: function (e) { var t = e; if (e[0] == &amp;quot;~&amp;quot;) t = this._relativeRoot + e.substring(2); return t } }; $Url = new Url; jQuery(document).ready(function (e) { e(&amp;quot;#nav-wrap&amp;quot;).prepend(&#39;&amp;lt;div id=&amp;quot;menu-icon&amp;quot;&amp;gt;Menu&amp;lt;/div&amp;gt;&#39;); e(&amp;quot;#menu-icon&amp;quot;).on(&amp;quot;click&amp;quot;, function () { e(&amp;quot;#nav&amp;quot;).slideToggle(); e(this).toggleClass(&amp;quot;active&amp;quot;) }) });&lt;br /&gt;    &amp;lt;/script&amp;gt;&lt;br /&gt;    @RenderSection(&amp;quot;scripts&amp;quot;, required: false)&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/pre&gt;If you remember the &lt;a href=&quot;http://www.jwc3.net/2014/06/kendo-ui-2014-with-mvc-5-bootstrap.html&quot;&gt;previous post&lt;/a&gt;, we did something very similar when referencing our bundles and the CDNs (contained within them).  If the CDN for any given JavaScript (or CSS) fails, then we need to be aware of that and load up the local version of the JavaScript files (and CSS).  The rule of thumb is that if one JavaScript fails from a specific CDN, just assume that they all fail from that CDN and load the corresponding JavaScript &lt;u&gt;AND CSS&lt;/u&gt; files just to be on the safe side. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Inspecting the custom _Layout.mobile.cshtml&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;Here we have the Kendo-specific HTML Helpers that are defining our mobile layout that will run for the entire site (assuming you are hitting the site on a mobile and/or tablet device).  There is one definition for each platform: IOS, Android, Blackberry, and Windows Phone (8 and up).  What is cool here is that if you include all of the kendo mobile css, and use the native Kendo Mobile buttons, it will make the site appear as a native application to each platform.  So, IOS will look like an IOS app, Android like an Android app, etc.  The only draw back is that if you are supporting a huge site and don&#39;t have room for big, native looking buttons, then you&#39;ll probably want to take the route I did and use the bootstrap navigation. &lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;@(Html.Kendo().MobileLayout()&lt;br /&gt;    .Name(&amp;quot;layout&amp;quot;)&lt;br /&gt;    .Platform(&amp;quot;ios&amp;quot;)&lt;br /&gt;    .Footer(&amp;quot;&amp;quot;)&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;@(Html.Kendo().MobileLayout()&lt;br /&gt;    .Name(&amp;quot;layout&amp;quot;)&lt;br /&gt;    .Platform(&amp;quot;android&amp;quot;)&lt;br /&gt;    .Footer(&amp;quot;&amp;quot;)&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;@(Html.Kendo().MobileLayout()&lt;br /&gt;    .Name(&amp;quot;layout&amp;quot;)&lt;br /&gt;    .Platform(&amp;quot;blackberry&amp;quot;)&lt;br /&gt;    .Footer(&amp;quot;&amp;quot;)&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;@( Html.Kendo().MobileLayout()&lt;br /&gt;    .Name(&amp;quot;layout&amp;quot;)&lt;br /&gt;    .Platform(&amp;quot;wp&amp;quot;)&lt;br /&gt;    .Footer(&amp;quot;&amp;quot;)&lt;br /&gt;)&lt;/code&gt;&lt;/pre&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Inspecting the custom _Layout.mobile.cshtml - a Second Look&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;The other key to getting up and running with Kendo mobile is the Kendo MobileView().  Almost all examples show this HTML helper in the individual mobile view pages (which I think is ridiculous).  Here, I have put this main HTML helper in the _Layout.mobile page so that I just have to render content as usual in my [viewname].mobile.cshtml pages and will help copying and converting them much faster.  Other things to note here is that I am supporting the Bootstrap navigation that the main Desktop view uses and because of the responsive layout, it automatically goes into &quot;mobile mode&quot; to collapse the navigation. &lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;@(Html.Kendo().MobileView()&lt;br /&gt;    .Name(&amp;quot;layoutView&amp;quot;)&lt;br /&gt;    .Layout(&amp;quot;layout&amp;quot;)&lt;br /&gt;    .Content(@&amp;lt;text&amp;gt;&lt;br /&gt;                &amp;lt;div class=&amp;quot;navbar navbar-inverse navbar-fixed-top&amp;quot;&amp;gt;&lt;br /&gt;                    &amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;                        &amp;lt;div class=&amp;quot;navbar-header&amp;quot;&amp;gt;&lt;br /&gt;                            &amp;lt;button type=&amp;quot;button&amp;quot; class=&amp;quot;navbar-toggle&amp;quot; data-toggle=&amp;quot;collapse&amp;quot; data-target=&amp;quot;.navbar-collapse&amp;quot;&amp;gt;&lt;br /&gt;                                &amp;lt;span class=&amp;quot;icon-bar&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;                                &amp;lt;span class=&amp;quot;icon-bar&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;                                &amp;lt;span class=&amp;quot;icon-bar&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;                            &amp;lt;/button&amp;gt;&lt;br /&gt;                            @Html.ActionLink(&amp;quot;Application name&amp;quot;, &amp;quot;Index&amp;quot;, &amp;quot;Home&amp;quot;, new { Area = &amp;quot;&amp;quot; }, new { @class = &amp;quot;navbar-brand&amp;quot; })&lt;br /&gt;                        &amp;lt;/div&amp;gt;&lt;br /&gt;                        &amp;lt;div class=&amp;quot;navbar-collapse collapse&amp;quot;&amp;gt;&lt;br /&gt;                            @Html.Partial(&amp;quot;_Navigation&amp;quot;)&lt;br /&gt;                        &amp;lt;/div&amp;gt;&lt;br /&gt;                    &amp;lt;/div&amp;gt;&lt;br /&gt;                &amp;lt;/div&amp;gt;&lt;br /&gt;                &amp;lt;div class=&amp;quot;mTop55&amp;quot;&amp;gt;&lt;br /&gt;                    @RenderBody()&lt;br /&gt;                &amp;lt;/div&amp;gt;&lt;br /&gt;            &amp;lt;/text&amp;gt;&lt;br /&gt;    )&lt;br /&gt;)&lt;/code&gt;&lt;/pre&gt;&lt;br/&gt;&lt;b&gt;All Setup, now what?&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;If you have made it this far, and I&#39;m sure some testing, start creating a .mobile.cshtml version for every view in your MVC 5 web site.  &lt;br/&gt;&lt;br/&gt;For instance:&lt;br/&gt;&lt;br/&gt;    /Views/Home/Index.cshtml&lt;br/&gt;    /Views/Home/Index.mobile.cshtml&lt;br/&gt;    /Views/Accounts/Login.cshtml&lt;br/&gt;    /Views/Accounts/Login.mobile.cshtml&lt;br/&gt;    etc... &lt;br/&gt;&lt;br/&gt;It may seem like a daunting task to go through the site and create .mobile pages, but if you start out with the Desktop view as a copy and just make consistent changes (like change the way the pages are titled to like an &amp;lt;H3&amp;gt; tag opposed to &amp;lt;H1&amp;gt; or &amp;lt;H2&amp;gt;, you should be looking good.  Just get one or two pages with content going first and looking the way you want, then use the same structure with the rest of the .mobile pages. &lt;br/&gt;&lt;br/&gt;Cheers!</description><link>http://www.jwc3.net/2014/06/kendo-ui-mobile-with-aspnet-mvc-5-plus.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-SIodYrkJQE0/T6KY8Cgr_nI/AAAAAAAAAdI/JAqRMiTiMLo/s72-c/net_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-8022233402702602235</guid><pubDate>Thu, 12 Jun 2014 12:30:00 +0000</pubDate><atom:updated>2014-06-12T09:46:12.521-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Configuration</category><category domain="http://www.blogger.com/atom/ns#">Examples</category><category domain="http://www.blogger.com/atom/ns#">MVC</category><title>Tidy up your ASP.NET MVC 5 web.config</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-SIodYrkJQE0/T6KY8Cgr_nI/AAAAAAAAAdI/JAqRMiTiMLo/s1600/net_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-SIodYrkJQE0/T6KY8Cgr_nI/AAAAAAAAAdI/JAqRMiTiMLo/s200/net_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;If you&#39;re like me and my applications, you typically have a ton of AppSettings muddying up your web.config file in your MVC web application.  You probably have a few Connection Strings, but the bulk of the craziness is the AppSettings block.  There is a way to separate out the sections from your web.config to make things a bit more tidy for the web.config.  We&#39;ll create some files also in the root of the MVC web application to buddy up next to the web.config file. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Create an AppSettings.config file&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot; ?&amp;gt;&lt;br /&gt;&amp;lt;appSettings&amp;gt;&lt;br /&gt;  &amp;lt;add key=&amp;quot;webpages:Version&amp;quot; value=&amp;quot;3.0.0.0&amp;quot; /&amp;gt;&lt;br /&gt;  &amp;lt;add key=&amp;quot;webpages:Enabled&amp;quot; value=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;  &amp;lt;add key=&amp;quot;ClientValidationEnabled&amp;quot; value=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;  &amp;lt;add key=&amp;quot;UnobtrusiveJavaScriptEnabled&amp;quot; value=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;  &lt;br /&gt;  &amp;lt;!-- Custom settings below this line--&amp;gt;&lt;br /&gt;  &amp;lt;add key=&amp;quot;EnableCustomErrors&amp;quot; value=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;  &amp;lt;add key=&amp;quot;EnableOptimization&amp;quot; value=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;  &lt;br /&gt;  &amp;lt;!-- Map Settings --&amp;gt;&lt;br /&gt;  &amp;lt;add key=&amp;quot;AddressMap&amp;quot; value=&amp;quot;/mapurl&amp;quot;/&amp;gt;&lt;br /&gt;  &lt;br /&gt;  &amp;lt;!-- Mail Server Settings--&amp;gt;&lt;br /&gt;  &amp;lt;add key=&amp;quot;DefaultEmail&amp;quot; value=&amp;quot;notify@someoneelse.com&amp;quot; /&amp;gt;&lt;br /&gt;  &amp;lt;add key=&amp;quot;SMTPServer&amp;quot; value=&amp;quot;smtp.mail.com&amp;quot; /&amp;gt;&lt;br /&gt;  &amp;lt;add key=&amp;quot;SMTPPort&amp;quot; value=&amp;quot;25&amp;quot;/&amp;gt;&lt;br /&gt;  &amp;lt;add key=&amp;quot;SMTPAuthUser&amp;quot; value=&amp;quot;bing@google.com&amp;quot;/&amp;gt;&lt;br /&gt;  &amp;lt;add key=&amp;quot;SMTPAuthPassword&amp;quot; value=&amp;quot;yahoo&amp;quot;/&amp;gt;&lt;br /&gt;  &amp;lt;add key=&amp;quot;UseSSL&amp;quot; value=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;  &amp;lt;add key=&amp;quot;UseSMTPAuth&amp;quot; value=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;  &lt;br /&gt;  &amp;lt;!-- 3rd Party Application Keys and Defaults--&amp;gt;&lt;br /&gt;  &amp;lt;add key=&amp;quot;reCAPTCHA::PublicKey&amp;quot; value=&amp;quot;want&amp;quot; /&amp;gt;&lt;br /&gt;  &amp;lt;add key=&amp;quot;reCAPTCHA::PrivateKey&amp;quot; value=&amp;quot;something&amp;quot; /&amp;gt;&lt;br /&gt;  &amp;lt;add key=&amp;quot;RouteDebugger:Enabled&amp;quot; value=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/appSettings&amp;gt;&lt;/code&gt;&lt;/pre&gt;Basically, this is your &amp;lt;appSettings&amp;gt; block of xml data from the web.config.  The only addition here is the &amp;lt;xml&amp;gt; tag at the top of the file. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Create a ConnectionStrings.config file&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot; ?&amp;gt;&lt;br /&gt;&amp;lt;connectionStrings&amp;gt;&lt;br /&gt;  &amp;lt;add name=&amp;quot;DefaultConnection&amp;quot; connectionString=&amp;quot;Data Source=.\SQLEXPRESS;Initial Catalog=MyApp;Integrated Security=True&amp;quot; providerName=&amp;quot;System.Data.SqlClient&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/connectionStrings&amp;gt;&lt;/code&gt;&lt;/pre&gt;Just like our &amp;lt;appSettings&amp;gt; block we moved, here we have moved our &amp;lt;connectionStrings&amp;gt; block of xml to our newly created file. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Update your web.config file&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;appSettings configSource=&amp;quot;AppSettings.config&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;connectionStrings configSource=&amp;quot;ConnectionStrings.config&amp;quot; /&amp;gt;&lt;/code&gt;&lt;/pre&gt;That is putting a bow-tie on the configuration settings.  Now, that they are separated into different files, you do not have to mess with the web.config every time you need to change the &amp;lt;appSettings&amp;gt; or &amp;lt;connectionStrings&amp;gt; blocks.  This also works well when you have different developers with slightly different database connections or settings, depending on what version of a project they are working on, etc.  So, you can have the Config files be prevented from being checked in (except for like the Tech Lead, obviously). &lt;br/&gt;&lt;br/&gt;Cheers!</description><link>http://www.jwc3.net/2014/06/tidy-up-your-webconfig.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-SIodYrkJQE0/T6KY8Cgr_nI/AAAAAAAAAdI/JAqRMiTiMLo/s72-c/net_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-1854203338151384019</guid><pubDate>Wed, 11 Jun 2014 14:19:00 +0000</pubDate><atom:updated>2014-06-11T10:19:17.617-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">Bootstrap</category><category domain="http://www.blogger.com/atom/ns#">Examples</category><category domain="http://www.blogger.com/atom/ns#">Kendo</category><category domain="http://www.blogger.com/atom/ns#">KnockoutJs</category><category domain="http://www.blogger.com/atom/ns#">MVC</category><category domain="http://www.blogger.com/atom/ns#">Pines Notify</category><title>Kendo UI 2014 with MVC 5, Bootstrap, KnockoutJs and Pines Notify (and using CDN)</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-SIodYrkJQE0/T6KY8Cgr_nI/AAAAAAAAAdI/JAqRMiTiMLo/s1600/net_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-SIodYrkJQE0/T6KY8Cgr_nI/AAAAAAAAAdI/JAqRMiTiMLo/s200/net_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Using Kendo in MVC 5 isn&#39;t necessarily a challenge, but if you are unfamiliar with setting up a Telerik product in MVC, things can seem strange and cause frustration in trying to get it to work right.  So, never fear, James is here.  :)  I&#39;ve been using Telerik products for years, in ASP.NET Forms and for the past few years, MVC.  I&#39;ll walk you through the setup and show you how to pull it off using the CDN option for MVC. Let&#39;s get started. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;First, go and create a new ASP.NET MVC 5 Web Application (Internet version is fine)&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;Done?  You should now have a basic MVC 5 site together that you can run (if you want to hit CTRL + F5, or F5, you can test this).  It works? Great, then lets move on. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Edit AppStart/BundleConfig.cs&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;using System;&lt;br /&gt;using System.Configuration;&lt;br /&gt;using System.Web;&lt;br /&gt;using System.Web.Optimization;&lt;br /&gt;&lt;br /&gt;namespace MyApp.Web&lt;br /&gt;{&lt;br /&gt;    public class BundleConfig&lt;br /&gt;    {&lt;br /&gt;        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862&lt;br /&gt;        public static void RegisterBundles(BundleCollection bundles)&lt;br /&gt;        {&lt;br /&gt;            BundleTable.EnableOptimizations = true;&lt;br /&gt;&lt;br /&gt;            #region JavaScript Bundles&lt;br /&gt;&lt;br /&gt;            // Enable CDN Support&lt;br /&gt;            bundles.UseCdn = true;&lt;br /&gt;&lt;br /&gt;            var jqueryCdnPath = &amp;quot;https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.1.min.js&amp;quot;;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/jquery&amp;quot;, jqueryCdnPath).Include(&amp;quot;~/Scripts/jquery-2.1.1.min.js&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var jqueryValidateCdnPath = &amp;quot;https://ajax.aspnetcdn.com/ajax/jquery.validate/1.12.0/jquery.validate.min.js&amp;quot;;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/jqueryValidate&amp;quot;, jqueryValidateCdnPath).Include(&amp;quot;~/Scripts/jquery.validate.min.js&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var bootstrapCdnPath = &amp;quot;https://ajax.aspnetcdn.com/ajax/bootstrap/3.1.1/bootstrap.min.js&amp;quot;;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/bootstrap&amp;quot;, bootstrapCdnPath).Include(&amp;quot;~/Scripts/bootstrap.min.js&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var respondCdnPath = &amp;quot;https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js&amp;quot;;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/respond&amp;quot;, respondCdnPath).Include(&amp;quot;~/Scripts/respond.js&amp;quot;));&lt;br /&gt;            &lt;br /&gt;            var knockoutCdnPath = &amp;quot;https://ajax.aspnetcdn.com/ajax/knockout/knockout-3.1.0.js&amp;quot;;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/knockout&amp;quot;, knockoutCdnPath).Include(&amp;quot;~/Scripts/knockout-3.1.0.js&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var kendoAllCdnPath = &amp;quot;https://da7xgjtj801h2.cloudfront.net/2014.1.416/js/kendo.all.min.js&amp;quot;;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/kendoAll&amp;quot;, kendoAllCdnPath).Include(&amp;quot;~/Scripts/kendo.all.min.js&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var kendoMvcCdnPath = &amp;quot;https://da7xgjtj801h2.cloudfront.net/2014.1.416/js/kendo.aspnetmvc.min.js&amp;quot;;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/kendoMvc&amp;quot;, kendoMvcCdnPath).Include(&amp;quot;~/Scripts/kendo.aspnetmvc.min.js&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var kendoTimeCdnPath = &amp;quot;https://da7xgjtj801h2.cloudfront.net/2014.1.416/js/kendo.timezones.min.js&amp;quot;;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/kendoTime&amp;quot;, kendoTimeCdnPath).Include(&amp;quot;~/Scripts/kendo.timezones.min.js&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var pinesNotifyCdnPath = &amp;quot;https://cdnjs.cloudflare.com/ajax/libs/pnotify/2.0.0/pnotify.all.min.js&amp;quot;;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/pNotify&amp;quot;, pinesNotifyCdnPath).Include(&amp;quot;~/Scripts/pnotify.all.min.js&amp;quot;));&lt;br /&gt;&lt;br /&gt;            bundles.Add(new ScriptBundle(&amp;quot;~/bundles/myapp&amp;quot;).Include(&lt;br /&gt;                        &amp;quot;~/Scripts/T4MvcJs/T4MvcJs.js&amp;quot;,&lt;br /&gt;                        &amp;quot;~/Scripts/bootstrap-switch.min.js&amp;quot;,&lt;br /&gt;                        &amp;quot;~/Scripts/MyApp.core.js&amp;quot;&lt;br /&gt;                        ));&lt;br /&gt;&lt;br /&gt;            #endregion&lt;br /&gt;&lt;br /&gt;            #region CSS Bundles&lt;br /&gt;&lt;br /&gt;            var bootstrapCSSCdnPath = &amp;quot;https://ajax.aspnetcdn.com/ajax/bootstrap/3.1.1/css/bootstrap.min.css&amp;quot;;&lt;br /&gt;            bundles.Add(new StyleBundle(&amp;quot;~/Content/bootstrap&amp;quot;, bootstrapCSSCdnPath).Include(&amp;quot;~/Content/bootstrap.min.css&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var bootstrapThemeCSSCdnPath = &amp;quot;https://ajax.aspnetcdn.com/ajax/bootstrap/3.1.1/css/bootstrap-theme.min.css&amp;quot;;&lt;br /&gt;            bundles.Add(new StyleBundle(&amp;quot;~/Content/bootstrapTheme&amp;quot;, bootstrapThemeCSSCdnPath).Include(&amp;quot;~/Content/bootstrap-theme.min.css&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var kendoCommonCSSCdnPath = &amp;quot;https://da7xgjtj801h2.cloudfront.net/2014.1.416/styles/kendo.common.min.css&amp;quot;;&lt;br /&gt;            bundles.Add(new StyleBundle(&amp;quot;~/Content/kendoCommon&amp;quot;, kendoCommonCSSCdnPath).Include(&amp;quot;~/Content/kendo.common.min.css&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var kendoCommonBootstrapCSSCdnPath = &amp;quot;https://da7xgjtj801h2.cloudfront.net/2014.1.416/styles/kendo.common-bootstrap.min.css&amp;quot;;&lt;br /&gt;            bundles.Add(new StyleBundle(&amp;quot;~/Content/kendoCommonBootstrap&amp;quot;, kendoCommonBootstrapCSSCdnPath).Include(&amp;quot;~/Content/kendo.common-bootstrap.min.css&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var kendoBootstrapCSSCdnPath = &amp;quot;https://da7xgjtj801h2.cloudfront.net/2014.1.416/styles/kendo.bootstrap.min.css&amp;quot;;&lt;br /&gt;            bundles.Add(new StyleBundle(&amp;quot;~/Content/kendoBootstrap&amp;quot;, kendoBootstrapCSSCdnPath).Include(&amp;quot;~/Content/kendo.bootstrap.min.css&amp;quot;));&lt;br /&gt;&lt;br /&gt;            var pinesNotifyCSSCdnPath = &amp;quot;https://cdnjs.cloudflare.com/ajax/libs/pnotify/2.0.0/pnotify.all.min.css&amp;quot;;&lt;br /&gt;            bundles.Add(new StyleBundle(&amp;quot;~/Content/pNotify&amp;quot;, pinesNotifyCSSCdnPath).Include(&amp;quot;~/Content/pnotify.all.min.css&amp;quot;));&lt;br /&gt;&lt;br /&gt;            bundles.Add(new StyleBundle(&amp;quot;~/Content/css&amp;quot;).Include(&lt;br /&gt;                      &amp;quot;~/Content/bootstrap-switch.min.css&amp;quot;,&lt;br /&gt;                      &amp;quot;~/Content/bootstrap-glyphicons.css&amp;quot;,&lt;br /&gt;                      &amp;quot;~/Content/site.css&amp;quot;));&lt;br /&gt;&lt;br /&gt;            #endregion&lt;br /&gt;&lt;br /&gt;            bundles.IgnoreList.Clear();&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;Holy Cow!  Look at all those JavaScript and CSS files!  Yes, there are a lot, but if you want to take advantage of the open source CDN hosting, this is what it looks like.  I have CDN&#39;s listed above for jQuery, jQuery Validate, Bootstrap, RespondJs, KnockoutJs, and Kendo.  My custom JavaScript files are still being bundled and hosted locally (for now).  So, this takes care of our Bundle Config.  If you do not use files like Knockout, Bootstrap, Respond, etc., just get rid of them as you don&#39;t need them. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;JavaScript / CSS files (/Scripts folder and /Content folder)&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;You see all those local paths that are listed with the CDN declarations? (i.e. .Include(&amp;quot;~/Scripts/pnotify.all.min.js&amp;quot;))  That is defining the local path in your MVC 5 application to the JavaScript or CSS file.  This is very important to have when switching from bundles.UseCdn = true to bundles.UseCdn = false.  These are the files it&#39;s going to try to produce when the CDN isn&#39;t being &quot;turned on&quot;.  &lt;i&gt;This is not a fallback though, when the CDN is turned on and MVC 5 cannot download the file&lt;/i&gt;.  That has to be handled manually (unfortunately). &lt;br/&gt;&lt;br/&gt;&lt;b&gt;/Views/Shared/_Layout.cshtml&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;    &amp;lt;meta charset=&amp;quot;utf-8&amp;quot; /&amp;gt;&lt;br /&gt;    &amp;lt;meta name=&amp;quot;viewport&amp;quot; content=&amp;quot;width=device-width, initial-scale=1.0&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;title&amp;gt;@ViewBag.Title - My ASP.NET Application&amp;lt;/title&amp;gt;    &lt;br /&gt;    @Styles.Render(&amp;quot;~/Content/kendoCommon&amp;quot;)&lt;br /&gt;    @Styles.Render(&amp;quot;~/Content/kendoCommonBootstrap&amp;quot;)&lt;br /&gt;    @Styles.Render(&amp;quot;~/Content/kendoBootstrap&amp;quot;)&lt;br /&gt;    @Styles.Render(&amp;quot;~/Content/bootstrap&amp;quot;)&lt;br /&gt;    @Styles.Render(&amp;quot;~/Content/bootstrapTheme&amp;quot;)&lt;br /&gt;    @Styles.Render(&amp;quot;~/Content/pNotify&amp;quot;)&lt;br /&gt;    @Styles.Render(&amp;quot;~/Content/css&amp;quot;)&lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/jquery&amp;quot;)&lt;br /&gt;    &amp;lt;script&amp;gt;&lt;br /&gt;        if (typeof jQuery == &amp;quot;undefined&amp;quot;) { document.write(decodeURIComponent(&#39;%3Cscript src=&amp;quot;/Scripts/jquery-2.1.1.min.js&amp;quot; %3E%3C/script%3E&#39;)) }&lt;br /&gt;    &amp;lt;/script&amp;gt; &lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/jqueryValidate&amp;quot;)&lt;br /&gt;    &amp;lt;script&amp;gt;&lt;br /&gt;        if (!$.validator) { document.write(decodeURIComponent(&#39;%3Cscript src=&amp;quot;/Scripts/jquery.validate.min.js&amp;quot; %3E%3C/script%3E&#39;)) }&lt;br /&gt;    &amp;lt;/script&amp;gt; &lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/knockout&amp;quot;)&lt;br /&gt;    &amp;lt;script&amp;gt;&lt;br /&gt;        if (!window.ko) { document.write(decodeURIComponent(&#39;%3Cscript src=&amp;quot;/Scripts/knockout-3.1.0.js&amp;quot; %3E%3C/script%3E&#39;)) }&lt;br /&gt;    &amp;lt;/script&amp;gt;&lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/kendoAll&amp;quot;)&lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/kendoMvc&amp;quot;)&lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/kendoTime&amp;quot;)&lt;br /&gt;    &amp;lt;script&amp;gt;&lt;br /&gt;        if (typeof kendo == &amp;quot;undefined&amp;quot;) { document.write(decodeURIComponent(&#39;%3Clink rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;/Content/kendo.common.min.css&amp;quot; %3C/%3E&#39;)); document.write(decodeURIComponent(&#39;%3Clink rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;/Content/kendo.common-bootstrap.min.css&amp;quot; %3C/%3E&#39;)); document.write(decodeURIComponent(&#39;%3Clink rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;/Content/kendo.bootstrap.min.css&amp;quot; %3C/%3E&#39;)); document.write(decodeURIComponent(&#39;%3Clink rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;/Content/kendo.bootstrap.mobile.min.css&amp;quot; %3C/%3E&#39;)); document.write(decodeURIComponent(&#39;%3Clink rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;/Content/kendo.mobile.all.min.css&amp;quot; %3C/%3E&#39;)); document.write(decodeURIComponent(&#39;%3Cscript src=&amp;quot;/Scripts/kendo.all.min.js&amp;quot; %3E%3C/script%3E&#39;)); document.write(decodeURIComponent(&#39;%3Cscript src=&amp;quot;/Scripts/kendo.aspnetmvc.min.js&amp;quot; %3E%3C/script%3E&#39;)); document.write(decodeURIComponent(&#39;%3Cscript src=&amp;quot;/Scripts/kendo.timezones.min.js&amp;quot; %3E%3C/script%3E&#39;)) }&lt;br /&gt;    &amp;lt;/script&amp;gt;&lt;br /&gt;    &lt;br /&gt;    @RenderSection(&amp;quot;head&amp;quot;, false)&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;    &amp;lt;div class=&amp;quot;navbar navbar-inverse navbar-fixed-top&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;div class=&amp;quot;navbar-header&amp;quot;&amp;gt;&lt;br /&gt;                &amp;lt;button type=&amp;quot;button&amp;quot; class=&amp;quot;navbar-toggle&amp;quot; data-toggle=&amp;quot;collapse&amp;quot; data-target=&amp;quot;.navbar-collapse&amp;quot;&amp;gt;&lt;br /&gt;                    &amp;lt;span class=&amp;quot;icon-bar&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;                    &amp;lt;span class=&amp;quot;icon-bar&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;                    &amp;lt;span class=&amp;quot;icon-bar&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;                &amp;lt;/button&amp;gt;&lt;br /&gt;                @Html.ActionLink(&amp;quot;Application name&amp;quot;, &amp;quot;Index&amp;quot;, &amp;quot;Home&amp;quot;, new { Area = &amp;quot;&amp;quot; }, new { @class = &amp;quot;navbar-brand&amp;quot; })&lt;br /&gt;            &amp;lt;/div&amp;gt;&lt;br /&gt;            &amp;lt;div class=&amp;quot;navbar-collapse collapse&amp;quot;&amp;gt;&lt;br /&gt;                @Html.Partial(&amp;quot;_Navigation&amp;quot;)&lt;br /&gt;            &amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;div id=&amp;quot;headerSub&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;div class=&amp;quot;container body-content&amp;quot;&amp;gt;&lt;br /&gt;        @RenderBody()&lt;br /&gt;        &amp;lt;hr /&amp;gt;&lt;br /&gt;        &amp;lt;footer&amp;gt;&lt;br /&gt;            &amp;lt;p&amp;gt;&amp;amp;copy; @DateTime.Now.Year - MyApp&amp;lt;/p&amp;gt;&lt;br /&gt;        &amp;lt;/footer&amp;gt;&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/bootstrap&amp;quot;)&lt;br /&gt;    &amp;lt;script&amp;gt;&lt;br /&gt;        if (typeof $().emulateTransitionEnd != &amp;quot;function&amp;quot;) { document.write(decodeURIComponent(&#39;%3Clink rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;/Content/bootstrap.min.css&amp;quot; %3C/%3E&#39;)); document.write(decodeURIComponent(&#39;%3Clink rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;/Content/bootstrap-theme.min.css&amp;quot; %3C/%3E&#39;)); document.write(decodeURIComponent(&#39;%3Cscript src=&amp;quot;/Scripts/bootstrap.min.js&amp;quot; %3E%3C/script%3E&#39;)) }&lt;br /&gt;    &amp;lt;/script&amp;gt; &lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/respond&amp;quot;)&lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/pNotify&amp;quot;)&lt;br /&gt;    @Scripts.Render(&amp;quot;~/bundles/myapp&amp;quot;)&lt;br /&gt;    @RenderSection(&amp;quot;scripts&amp;quot;, required: false)&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;Really?  Is all that necessary?  Yes.  Yes, it&#39;s all necessary (and minified for your convenience).  Kendo UI likes to have it&#39;s JavaScript files in the &amp;lt;Head&amp;gt; part of the document, and of course it relies on jQuery, so jQuery needs to go there as well.  The CSS bundles, as usual are also contained in the &amp;lt;Head&amp;gt;.  Knockout was questionable to put there, but I did it anyways since it&#39;s so small.  Bootstrap, Respond, Pines Notify and my custom JavaScript files are at the bottom, just before the closing &amp;lt;/Body&amp;gt; tag. &lt;br/&gt;&lt;br/&gt;You&#39;ll notice that there are many &amp;lt;script&amp;gt; blocks that follow the declarations of CDN bundles.  The reason for this is our &quot;fallback&quot; when the CDN fails to load one of the referenced JavaScript and/or CSS files.  It happens and if you don&#39;t want your web application to take a nose-dive, you&#39;ll want to do this (to Hell with the YSlow purists!).  You&#39;ll make up points with CDN versus HTML requests and &amp;lt;script&amp;gt; blocks.  Just make sure that you minify any &amp;lt;script&amp;gt; block you use to test for and load a local JavaScript/CSS file. &lt;br/&gt;&lt;br/&gt;Also, I group some of them together where they are coming from the same CDN host.  No reason to test for every single JavaScript file.  If one fails to load from a specific CDN, assume all are going to fail and load the CSS and JavaScripts that are supposed to come from that CDN host. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;/Views/web.config (same as if in an MVC Area, you need to update those too)&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;system.web.webPages.razor&amp;gt;&lt;br /&gt;    &amp;lt;host factoryType=&amp;quot;System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35&amp;quot; /&amp;gt;&lt;br /&gt;    &amp;lt;pages pageBaseType=&amp;quot;System.Web.Mvc.WebViewPage&amp;quot;&amp;gt;&lt;br /&gt;      &amp;lt;namespaces&amp;gt;&lt;br /&gt;        &amp;lt;add namespace=&amp;quot;System.Web.Mvc&amp;quot; /&amp;gt;&lt;br /&gt;        &amp;lt;add namespace=&amp;quot;System.Web.Mvc.Ajax&amp;quot; /&amp;gt;&lt;br /&gt;        &amp;lt;add namespace=&amp;quot;System.Web.Mvc.Html&amp;quot; /&amp;gt;&lt;br /&gt;        &amp;lt;add namespace=&amp;quot;System.Web.Optimization&amp;quot;/&amp;gt;&lt;br /&gt;        &amp;lt;add namespace=&amp;quot;System.Web.Routing&amp;quot; /&amp;gt;&lt;br /&gt;        &amp;lt;add namespace=&amp;quot;MyApp.Web&amp;quot; /&amp;gt;&lt;br /&gt;        &amp;lt;add namespace=&amp;quot;Kendo.Mvc.UI&amp;quot; /&amp;gt;&lt;br /&gt;      &amp;lt;/namespaces&amp;gt;&lt;br /&gt;    &amp;lt;/pages&amp;gt;&lt;br /&gt;  &amp;lt;/system.web.webPages.razor&amp;gt;&lt;/code&gt;&lt;/pre&gt;In all the /View/web.config &#39;s, you have to add the namespace(s) for your custom application and the Kendo.Mvc.UI if you want to see your @Html.Kendo() helpers.  If you miss this step or don&#39;t do it, you&#39;ll be a little frustrated. :) &lt;br/&gt;&lt;br/&gt;That&#39;s basically it for getting Kendo UI up and running.  I touched on the main points.  I didn&#39;t go into the detail of referencing Kendo.Mvc DLL or adding the Kendo JavaScript and CSS files, along with the other 3rd party files like Bootstrap, RespondJs, KnockoutJs and Pines Notify.  The focus for this post was getting Kendo running with the other JavaScript files in MVC 5 with CDN support. &lt;br/&gt;&lt;br/&gt;Cheers!</description><link>http://www.jwc3.net/2014/06/kendo-ui-2014-with-mvc-5-bootstrap.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-SIodYrkJQE0/T6KY8Cgr_nI/AAAAAAAAAdI/JAqRMiTiMLo/s72-c/net_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-5115541913742567885</guid><pubDate>Tue, 10 Jun 2014 12:30:00 +0000</pubDate><atom:updated>2014-06-10T08:38:12.550-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">HTML</category><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><category domain="http://www.blogger.com/atom/ns#">KnockoutJs</category><title>Central KnockoutJs JavaScript Debugger Function</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s1600/javascript_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s200/javascript_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;If you use &lt;a href=&quot;http://knockoutjs.com&quot;&gt;KnockoutJs&lt;/a&gt;, and need a way to watch the KnockoutJs observables change to see their real-time values, it can be kind of a pain.  Luckily, KnockoutJs does provide a way to generate all the observables out to a formatted string.    &lt;br/&gt;&lt;br/&gt;&lt;b&gt;HTML page&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;html&amp;gt;&lt;br /&gt;    &amp;lt;head&amp;gt;&lt;br /&gt;        &amp;lt;title&amp;gt;Test Page - MyApp&amp;lt;/title&amp;gt;&lt;br /&gt;        &amp;lt;script src=&amp;quot;MyApp.core.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;        &amp;lt;script src=&amp;quot;MyApp.accounts.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;    &amp;lt;/head&amp;gt;&lt;br /&gt;    &amp;lt;body&amp;gt;&lt;br /&gt;        &amp;lt;span data-bind=&amp;quot;text: FirstName&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;        &amp;lt;span data-bind=&amp;quot;text: LastName&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;        &amp;lt;button data-bind=&amp;quot;click: buttonClick&amp;quot;&amp;gt;Click Me!&amp;lt;/button&amp;gt;&lt;br /&gt;&lt;br /&gt;        &amp;lt;script type=&amp;quot;text/javascript&amp;quot; language=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;            var ViewModel = function () {&lt;br /&gt;                var self = this;&lt;br /&gt;&lt;br /&gt;                // Some observables (can be dynamically generated with server-side code to Raw HTML&lt;br /&gt;                self.FirstName = ko.observable();&lt;br /&gt;                self.LastName = ko.observable();&lt;br /&gt;                self.People = ko.observableArray();&lt;br /&gt;            };&lt;br /&gt;            $(function () {&lt;br /&gt;                MyApp.core.DebugKO();&lt;br /&gt;                MyApp.accounts.InitializeEditPage(ViewModel);&lt;br /&gt;            });&lt;br /&gt;        &amp;lt;/script&amp;gt;&lt;br /&gt;    &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/pre&gt;The HTML/Code above is similar to my &lt;a href=&quot;http://www.jwc3.net/2014/06/use-knockoutjs-and-separate-javascript.html&quot;&gt;previous post&lt;/a&gt; about KnockoutJs, with just two additions.  First, I&#39;m including another JavaScript library called &quot;MyApp.core.js&quot;.  Secondly, I&#39;m calling a namespaced function &quot;MyApp.core.DebugKO()&quot;.  The function, which I only use for debugging KnockoutJs live (Firebug&#39;s DOM in FireFox can also see our &quot;live&quot; KnockougJs elements).  There&#39;s nothing magical here other than we have a core function for creating the KnockoutJs elments that can be called anywhere we reference our core JavaScript library. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Core JavaScript Library&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;if (typeof MyApp === &#39;undefined&#39;) {&lt;br /&gt;    MyApp = {};&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;MyApp.core = {};&lt;br /&gt;&lt;br /&gt;// Central way to allow quick debugging for KnockoutJs&lt;br /&gt;MyApp.core.DebugKO = function (target, viewModel) {&lt;br /&gt;    target = target != undefined &amp;amp;&amp;amp; target != null ? target : &amp;quot;body&amp;quot;;&lt;br /&gt;    viewModel = viewModel != undefined &amp;amp;&amp;amp; viewModel != null ? viewModel : &amp;quot;$root&amp;quot;;&lt;br /&gt;    $(target).append(&amp;quot;&amp;lt;pre style=&#39;border: 1px red dashed; padding: 10px; margin: 10px;&#39; data-bind=&#39;text: ko.toJSON(&amp;quot; + viewModel+ &amp;quot;, null, 2)&#39;&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;div class=&#39;clear&#39;&amp;gt;&amp;lt;/div&amp;gt;&amp;quot;);&lt;br /&gt;};&lt;/code&gt;&lt;/pre&gt;The DebugKO function above defaults to creating a &amp;lt;pre&amp;gt; element before the closing &amp;lt;body&amp;gt; tag of a page when it&#39;s called.  It will list out all the KnockoutJs observables that have been bound to the page.  The parameters that are optional are the &lt;b&gt;target&lt;/b&gt;, which allows you to put the generated observable list somewhere else in the HTML, and secondly, the &lt;b&gt;viewModel&lt;/b&gt; which allows you to target a specific view model on the page (generally used when you have multiple KnockoutJs view models on one page). &lt;br/&gt;&lt;br/&gt;Cheers!</description><link>http://www.jwc3.net/2014/06/central-knockoutjs-javascript-debugger.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s72-c/javascript_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-8940883867506579258</guid><pubDate>Mon, 09 Jun 2014 13:00:00 +0000</pubDate><atom:updated>2014-06-09T09:00:01.149-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">HTML</category><category domain="http://www.blogger.com/atom/ns#">James&#39; Best Practices</category><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><category domain="http://www.blogger.com/atom/ns#">KnockoutJs</category><title>Use KnockoutJs and separate JavaScript files outside of a web page</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s1600/javascript_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s200/javascript_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;If you have used &lt;a href=&quot;http://knockoutjs.com/&quot;&gt;KnockoutJs&lt;/a&gt; before, or are just getting into it, you may have noticed that the majority of examples, if not all, show how to use KnockoutJs within the HTML web page (&amp;lt;script&amp;gt; block).  This may work for the simple examples, but in the real world with large web applications, we tend to have a vast number of JavaScript libraries, full of namespaced functions (i.e. MyApp.accounts.DoSomething();) &lt;br/&gt;&lt;br/&gt;&lt;b&gt;So, what&#39;s the plan then?&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;The plan is to have the following: HTML page with a &amp;lt;script&amp;gt; block, and then have a JavaScript library that contains functions that need to access the KnockoutJs view model that has been bound. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;HTML page&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;html&amp;gt;&lt;br /&gt;    &amp;lt;head&amp;gt;&lt;br /&gt;        &amp;lt;title&amp;gt;Test Page - MyApp&amp;lt;/title&amp;gt;&lt;br /&gt;        &amp;lt;script src=&amp;quot;MyApp.accounts.js&amp;quot; type=&amp;quot;text/javascript&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;    &amp;lt;/head&amp;gt;&lt;br /&gt;    &amp;lt;body&amp;gt;&lt;br /&gt;        &amp;lt;span data-bind=&amp;quot;text: FirstName&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;        &amp;lt;span data-bind=&amp;quot;text: LastName&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;        &amp;lt;button data-bind=&amp;quot;click: buttonClick&amp;quot;&amp;gt;Click Me!&amp;lt;/button&amp;gt;&lt;br /&gt;&lt;br /&gt;        &amp;lt;script type=&amp;quot;text/javascript&amp;quot; language=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;            var ViewModel = function () {&lt;br /&gt;                var self = this;&lt;br /&gt;&lt;br /&gt;                // Some observables (can be dynamically generated with server-side code to Raw HTML&lt;br /&gt;                self.FirstName = ko.observable();&lt;br /&gt;                self.LastName = ko.observable();&lt;br /&gt;                self.People = ko.observableArray();&lt;br /&gt;            };&lt;br /&gt;            $(function () {&lt;br /&gt;                MyApp.accounts.InitializeEditPage(ViewModel);&lt;br /&gt;            });&lt;br /&gt;        &amp;lt;/script&amp;gt;&lt;br /&gt;    &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/pre&gt;Here we have a simple HTML page which could also be a rendered PHP, Java or ASP.NET MVC page that constructs part of the view model for KnockoutJs.  We also are referencing a custom JavaScript library of MyApp.accounts.js.  What we don&#39;t have here is the actual binding of KnockoutJs.  So, we are not going to bind it in the HTML page, but pass the generated view model to a JavaScript library function called &quot;MyApp.accounts.InitializeEditPage(ViewModel)&quot;. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;JavaScript library&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;if (typeof MyApp === &#39;undefined&#39;) {&lt;br /&gt;    MyApp = {};&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;MyApp.accounts = {};&lt;br /&gt;&lt;br /&gt;// Declare global variable to use to hold the knockout view model&lt;br /&gt;var ko_AccountViewModel = &amp;quot;&amp;quot;;&lt;br /&gt;&lt;br /&gt;// Initilize KnockoutJs&lt;br /&gt;MyApp.accounts.InitilizeEditPage = function (KnockoutViewModel) {&lt;br /&gt;    // Create new instance of the passed in View Model&lt;br /&gt;    ko_AccountViewModel = new KnockoutViewModel();&lt;br /&gt;    var self = ko_AccountViewModel;&lt;br /&gt;&lt;br /&gt;    // Define the click event for the button&lt;br /&gt;    self.buttonClick = function () {&lt;br /&gt;        MyApp.accounts.DoSomething();&lt;br /&gt;    };&lt;br /&gt;&lt;br /&gt;    // Bind KnockoutJs&lt;br /&gt;    ko.applyBindings(self);&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;// Typical JavaScript library function&lt;br /&gt;MyApp.accounts.DoSomething = function () {&lt;br /&gt;    var self = ko_AccountViewModel;&lt;br /&gt;&lt;br /&gt;    // Update the KnockoutJs Variables&lt;br /&gt;    self.FirstName(&amp;quot;Bob&amp;quot;);&lt;br /&gt;    self.LastName(&amp;quot;Smith&amp;quot;);&lt;br /&gt;};&lt;/code&gt;&lt;/pre&gt;What&#39;s going on here is we first are establishing our namespace of MyApp, then MyApp.accounts.  Next, we define our global variable in JavaScript to hold our Knockout view model that will be bound (this is important, otherwise the view model will not be available to other JavaScript functions).  Finally, we define our Initialize JavaScript function and a random JavaScript function that uses the Knockout view model that was passed from the HTML page into the JavaScript library and then bound. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;So, what&#39;s the point to all this?&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;The point my friends is that keeping your HTML page with as little in-page JavaScript, whether it&#39;s straight HTML, PHP, ASP.NET MVC or Java, is definitely a good thing.  One of the blockers has been when using MVVM&#39;s like Knockout is how to access KnockoutJs from a JavaScript library.  What this setup above demonstrates is how to do that.  Is this a perfect solution? No, as with all coding, there&#39;s always potential refactoring that can take place, I just don&#39;t know what that looks like at the time of this post.  :) &lt;br/&gt;&lt;br/&gt;Cheers!</description><link>http://www.jwc3.net/2014/06/use-knockoutjs-and-separate-javascript.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s72-c/javascript_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-719126239447589398</guid><pubDate>Fri, 06 Jun 2014 13:00:00 +0000</pubDate><atom:updated>2014-06-06T09:27:42.201-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><title>Replace text in a JavaScript string with text from a JavaScript Array</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s1600/javascript_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s200/javascript_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Have you ever needed to replace multiple text &quot;parts&quot; of a JavaScript string by using an array of values?  Well, as weird as a scenario it may seem, I have had to do that for a particular scenario in a project. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;The manual way&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;script&amp;gt;&lt;br /&gt;   var myString = &amp;quot;abcdefghijklmnopqrstuvwxyz&amp;quot;;&lt;br /&gt;   myString.replace(&amp;quot;c&amp;quot;, &amp;quot;&amp;quot;);&lt;br /&gt;   myString.replace(&amp;quot;m&amp;quot;, &amp;quot;&amp;quot;);&lt;br /&gt;   // ... etc.&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/pre&gt;That gets old really quickly if you have a lot of string manipulation that you need to do! &lt;br/&gt;&lt;br/&gt;&lt;b&gt;The better way&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;script&amp;gt;&lt;br /&gt;   var myString = &amp;quot;abcdefghijklmnopqrstuvwxyz&amp;quot;;&lt;br /&gt;   var items = [&amp;quot;c&amp;quot;, &amp;quot;m&amp;quot;, &amp;quot;x&amp;quot;, &amp;quot;f&amp;quot;];    &lt;br /&gt;   &lt;br /&gt;   for (var i = 0; i &amp;lt; items.length; i++) {&lt;br /&gt;      myString = myString.replace(items[i].toLowerCase(), &amp;quot;&amp;quot;);&lt;br /&gt;   }&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Returns: &lt;span style=&quot;color: green&quot;&gt;abdeghijklnopqrstuvwyz&lt;/span&gt;&lt;/b&gt;&lt;/code&gt;&lt;/pre&gt;As you can see we are just using a simple JavaScript for loop to loop through our JavaScript array and do some string manipulation on the fly. &lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://jsfiddle.net/piercove/SU2S2/&quot;&gt;Here is a link to a working example on JSFiddle&lt;/a&gt;.  One thing to note is that in the example, the 3rd example in the JSFiddle code only replaces the first instance of the text it runs into in the string.  If you have more than one occurrence of the text you are looking for, then you need to use the JavaScript global option (i.e. /g ).  &lt;a href=&quot;http://www.jwc3.net/2014/05/replace-characters-in-javascript-string.html&quot;&gt;Here&lt;/a&gt; is a blog post about that. &lt;br/&gt;&lt;br/&gt;Cheers! </description><link>http://www.jwc3.net/2014/06/replace-text-in-javascript-string-with.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s72-c/javascript_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-6687671942081195092</guid><pubDate>Thu, 05 Jun 2014 14:04:00 +0000</pubDate><atom:updated>2014-06-05T10:33:54.408-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Authentication</category><category domain="http://www.blogger.com/atom/ns#">Caching</category><category domain="http://www.blogger.com/atom/ns#">Examples</category><category domain="http://www.blogger.com/atom/ns#">HTML</category><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><category domain="http://www.blogger.com/atom/ns#">jQuery</category><title>Prevent Username (login) from being saved by the Internet Browser</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-zK2QdVMuxj8/T6KOhuJS14I/AAAAAAAAAcs/a_stopxIaGY/s1600/ux_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-zK2QdVMuxj8/T6KOhuJS14I/AAAAAAAAAcs/a_stopxIaGY/s200/ux_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;If you have tried to prevent the browser from caching the &quot;username&quot; field, which in turn caches the adjoining &quot;password&quot;, then you have searched the Internet and StackOverflow trying to find an answer.  Well, unfortunately, the default answer is to have an HTML 5 attribute of &#39;autocomplete = &quot;off&quot;&#39;.  While this is not wrong markup, most browsers will not honor it and not cache the &quot;username&quot; field. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Hack, but a solution&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;So, in my quest to pull this off, I tried everything from randomizing the name of the &quot;username&quot; box with a session Id to appending it with a TimeStamp -- the browsers kept &quot;remembering&quot; what was once typed in.  Then it dawned on me that it will not capture a Password input field, if there is no adjoining &quot;username&quot;-type field to go with it.  So, the hack is to make the input field for the &quot;username&quot; an input type of &quot;password&quot;.  Let me show you: &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Traditional Markup (HTML)&lt;/b&gt;  &lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;div&amp;gt;&lt;br /&gt;    &amp;lt;form&amp;gt;&lt;br /&gt;        &amp;lt;fieldset&amp;gt;&lt;br /&gt;            &amp;lt;ul&amp;gt;&lt;br /&gt;                &amp;lt;li&amp;gt;&lt;br /&gt;                    &amp;lt;input type=&amp;quot;text&amp;quot; id=&amp;quot;username&amp;quot; autocomplete=&amp;quot;off&amp;quot; /&amp;gt;&lt;br /&gt;                &amp;lt;/li&amp;gt;&lt;br /&gt;                &amp;lt;li&amp;gt;&lt;br /&gt;                    &amp;lt;input type=&amp;quot;password&amp;quot; id=&amp;quot;password&amp;quot; autocomplete=&amp;quot;off&amp;quot; /&amp;gt;&lt;br /&gt;                &amp;lt;/li&amp;gt;&lt;br /&gt;            &amp;lt;/ul&amp;gt;&lt;br /&gt;            &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;submit&amp;quot; /&amp;gt;&lt;br /&gt;        &amp;lt;/fieldset&amp;gt;&lt;br /&gt;    &amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/pre&gt;This is our typical setup, username and password.  Nothing fancy here, but the browsers will sure save these fields if you like it or not! &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Hacked Markup (HTML)&lt;/b&gt;  &lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;div&amp;gt;&lt;br /&gt;    &amp;lt;form&amp;gt;&lt;br /&gt;        &amp;lt;fieldset&amp;gt;&lt;br /&gt;            &amp;lt;ul&amp;gt;&lt;br /&gt;                &amp;lt;li&amp;gt;&lt;br /&gt;                    &amp;lt;input type=&amp;quot;password&amp;quot; id=&amp;quot;username&amp;quot; autocomplete=&amp;quot;off&amp;quot; /&amp;gt;&lt;br /&gt;                &amp;lt;/li&amp;gt;&lt;br /&gt;                &amp;lt;li&amp;gt;&lt;br /&gt;                    &amp;lt;input type=&amp;quot;password&amp;quot; id=&amp;quot;password&amp;quot; autocomplete=&amp;quot;off&amp;quot; /&amp;gt;&lt;br /&gt;                &amp;lt;/li&amp;gt;&lt;br /&gt;            &amp;lt;/ul&amp;gt;&lt;br /&gt;            &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;submit&amp;quot; /&amp;gt;&lt;br /&gt;        &amp;lt;/fieldset&amp;gt;&lt;br /&gt;    &amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;script src=&amp;quot;jquery.show-password.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;script&amp;gt;&lt;br /&gt;    $(function () {&lt;br /&gt;        $(&#39;#username&#39;).showPassword();&lt;br /&gt;    });&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/pre&gt;Using the jQuery plugin by the Github user &quot;cloudfour&quot; (check it out here: &lt;a href=&quot;https://github.com/cloudfour/hideShowPassword&quot;&gt;https://github.com/cloudfour/hideShowPassword&lt;/a&gt;), I am using the plugin to prevent the &quot;username&quot; field from showing the asterisks (since it is a password field.  The best part here is that because it is a password field, the browser ignores it as trying to cache it because it would be a security risk.  &lt;br/&gt;&lt;br/&gt;Although, FireFox, Chrome and Internet Explorer either have built-in utilities or add-ons that can remember your password for you, only if you &quot;opt-in&quot; and say &quot;Yes, Save my Password&quot; when prompted. &lt;br/&gt;&lt;br/&gt;</description><link>http://www.jwc3.net/2014/06/prevent-username-login-from-being-saved.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-zK2QdVMuxj8/T6KOhuJS14I/AAAAAAAAAcs/a_stopxIaGY/s72-c/ux_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-7695528084880395228</guid><pubDate>Mon, 19 May 2014 14:58:00 +0000</pubDate><atom:updated>2014-06-13T13:11:14.428-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Examples</category><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><title>Replace characters in JavaScript string: Fast and Global</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s1600/javascript_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s200/javascript_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;One thing in JavaScript that you need to do every now and then is replace a character (or more) from a string in the code.   &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Simple Replace&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;var myText = &quot;Hello World.&quot;;&lt;br /&gt;myText.replace(&#39;.&#39;, &#39;!&#39;);&lt;br /&gt;&lt;br /&gt;Result:  Hello World!&lt;/code&gt;&lt;/pre&gt;Here we are just doing a simple replace of one character.  Easy right?  Now, let&#39;s look at what happens when we have more than one of the same character in which we are replacing: &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Multiple Replace&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;var myText = &quot;Hello to the World.&quot;;&lt;br /&gt;myText.replace(&#39; &#39;, &#39;&#39;);&lt;br /&gt;&lt;br /&gt;Result:  Helloto the World.&lt;/code&gt;&lt;/pre&gt;Uh oh, it looks like JavaScript only replaced the first instance of the character in which we were searching.  Don&#39;t fret, there&#39;s a parameter for that.  Enter the &quot;global&quot; option in JavaScript or &quot;/g&quot;.  Let&#39;s try the same example as above, but this time add the global option. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Multiple Replace (with global option)&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;var myText = &quot;Hello to the World.&quot;;&lt;br /&gt;myText.replace(/ /g, &#39;&#39;);&lt;br /&gt;&lt;br /&gt;Result:  HellototheWorld.&lt;/code&gt;&lt;/pre&gt;As you can see, the global option (i.e. &quot;/g&quot;) tells JavaScript that we need to inspect the entire string for this replacement, not just the first character.  Keep in mind that this is using &lt;b&gt;Regex&lt;/b&gt; (&lt;a href=&quot;http://www.w3schools.com/jsref/jsref_obj_regexp.asp&quot;&gt;more on regex&lt;/a&gt;) and certain characters can actually cause a Regex error if you get fancy. &lt;br/&gt;&lt;br/&gt;You can find a working code set of the above examples &lt;a href=&quot;http://jsfiddle.net/piercove/88dH2/12/&quot;&gt;here&lt;/a&gt;. &lt;br/&gt;&lt;br/&gt;Cheers!</description><link>http://www.jwc3.net/2014/05/replace-characters-in-javascript-string.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s72-c/javascript_icon.png" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-3044584917680958560</guid><pubDate>Fri, 16 May 2014 19:41:00 +0000</pubDate><atom:updated>2014-05-16T15:43:40.672-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">.NET</category><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">Forms</category><category domain="http://www.blogger.com/atom/ns#">Kendo</category><category domain="http://www.blogger.com/atom/ns#">MVC</category><title>Kendo UI Scheduler Custom Event Editor Not Showing &quot;DisplayFor&quot; Fields in ASP.NET MVC</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-zK2QdVMuxj8/T6KOhuJS14I/AAAAAAAAAcs/a_stopxIaGY/s1600/ux_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-zK2QdVMuxj8/T6KOhuJS14I/AAAAAAAAAcs/a_stopxIaGY/s200/ux_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Upon adding a water-downed version of my Scheduler in another area that shows the &quot;Read Only&quot; version of some of the model (data) fields, I noticed that nothing was displaying.  I know from the &quot;Read&quot; event, that the data definitely was making it to the Scheduler Widget, but wasn&#39;t being shown when you open one of the existing events.  Then I thought about it, and WWTD (What Would Telerik Do).  Well, Telerik silently has embedded their MVVM into the Kendo UI Scheduler widget.  So, I bet, if I do a little data-bind(ing), it will work. &lt;br/&gt;&lt;br/&gt;Not so fast.  If you remember my &lt;a href=&quot;http://www.jwc3.net/2014/05/kendo-ui-scheduler-with-aspnet-mvc-and.html&quot;&gt;main post example&lt;/a&gt; on the Kendo UI Scheduler, you&#39;ll know that if you want something to show up in the custom Event Editor Template, you&#39;ll have to add it to the model (Schema in the web version). So, we have to do two things:  Add our extra &quot;display for&quot; fields to our Scheduler model, and then add some MVVM magic to the Event Editor Template. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Model (Schema) Addition:&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;.Model(m =&amp;gt;&lt;br /&gt;            {&lt;br /&gt;                m.Id(f =&amp;gt; f.Id);&lt;br /&gt;                m.Field(f =&amp;gt; f.Start);&lt;br /&gt;                m.Field(f =&amp;gt; f.End);&lt;br /&gt;                m.Field(f =&amp;gt; f.IsAllDay);&lt;br /&gt;                m.Field(f =&amp;gt; f.Title).DefaultValue(&amp;quot;No Title&amp;quot;);&lt;br /&gt;                m.Field(f =&amp;gt; f.RecurrenceRule);&lt;br /&gt;                m.Field(f =&amp;gt; f.Description);&lt;br /&gt;                m.RecurrenceId(f =&amp;gt; f.Recurrence);&lt;br /&gt;                // New Fields&lt;br /&gt;                m.Field(f =&amp;gt; f.CustomerName);&lt;br /&gt;                m.Field(f =&amp;gt; f.BusinessName);&lt;br /&gt;                m.Field(f =&amp;gt; f.PaymentName);&lt;br /&gt;            })&lt;/code&gt;&lt;/pre&gt;Notice here we just are adding three new fields from our ASP.NET MVC Model (and to our Scheduler Model): CustomerName, BusinessName, and PaymentName. &lt;br/&gt;&lt;i&gt;Note: This example has been abbreviated.  If you need the full Scheduler setup, see my &lt;a href=&quot;http://www.jwc3.net/2014/05/kendo-ui-scheduler-with-aspnet-mvc-and.html&quot;&gt;main post example&lt;/a&gt;.&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;&lt;b&gt;Model (Schema) Addition:&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;k-edit-label&amp;quot;&amp;gt;&lt;br /&gt;        @Html.Label(&amp;quot;CustomerId&amp;quot;, &amp;quot;Customer&amp;quot;)&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;div data-container-for=&amp;quot;CustomerId&amp;quot; class=&amp;quot;k-edit-field&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;div class=&amp;quot;mTop6&amp;quot; data-bind=&amp;quot;text: CustomerName&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/pre&gt;In the custom Event Editor Template, we create a DOM element (here a DIV), and then use the HTML 5 &quot;data-bind&quot; with the &quot;text&quot; binding and the matching Model property (here &quot;CustomerName&quot;) that we defined in our Model (Schema in Kendo Web) from the parent view. &lt;br/&gt;&lt;i&gt;Note: This example has been abbreviated.  If you need the full Scheduler setup, see my &lt;a href=&quot;http://www.jwc3.net/2014/05/kendo-ui-scheduler-with-aspnet-mvc-and.html&quot;&gt;main post example&lt;/a&gt;.&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;Cheers!    </description><link>http://www.jwc3.net/2014/05/kendo-ui-scheduler-custom-event-editor.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-zK2QdVMuxj8/T6KOhuJS14I/AAAAAAAAAcs/a_stopxIaGY/s72-c/ux_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-7536901875237088647</guid><pubDate>Fri, 09 May 2014 20:23:00 +0000</pubDate><atom:updated>2014-05-09T16:23:41.157-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">.NET</category><category domain="http://www.blogger.com/atom/ns#">Examples</category><category domain="http://www.blogger.com/atom/ns#">Kendo</category><category domain="http://www.blogger.com/atom/ns#">MVC</category><category domain="http://www.blogger.com/atom/ns#">Scheduler</category><title>Kendo UI Scheduler with ASP.NET MVC and Peta Poco Complete Example</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-SIodYrkJQE0/T6KY8Cgr_nI/AAAAAAAAAdI/JAqRMiTiMLo/s1600/net_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-SIodYrkJQE0/T6KY8Cgr_nI/AAAAAAAAAdI/JAqRMiTiMLo/s200/net_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;The Kendo UI Scheduler is a very powerful scheduling widget from Telerik that makes our lives easier (assuming you need this functionality).&amp;nbsp; As great as the tool is, some of us that have used Telerik products for years are left scratching our heads when it comes to the ASP.NET MVC documentation of the Kendo UI library, especially with the Scheduler widget.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;From much trial and error, an ever-expanding Stack Overflow collaboration &quot;question&quot;, and some documentation from Telerik, I have put together a &quot;getting started&quot; guide to get you running with a Kendo UI Scheduler in ASP.NET MVC.&amp;nbsp; Below, I&#39;ve broken up the code into several parts:&amp;nbsp; the database table structure, custom attribute date checker, the view models, the handlers, the controllers, the view and the editor template.&amp;nbsp; Telerik has their &quot;example&quot;, but this example is more flushed out for a real world project (my opinion of course). &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Additional Notes&lt;/b&gt;&lt;br/&gt;Also, just as a reminder, my ORM is Peta-Poco, and some of the logic in the handlers is related to Peta-Poco and will be different for your application.  I do not go into the building of the Domain Project layer with Peta-Poco and this article assumes that you already have an ORM in place.  I also use AutoMapper to do some of my automatic stitching, although in this particular example it is scarce.  I also am using Structure Map (for MVC) within this project in which you&#39;ll see a reference to it in the Controller code.  Lastly, I also have a custom class &quot;ResponseError&quot; which you&#39;ll see in a few places in the handler.  This is just a custom interface used to wrap my result object view model with any errors that may occur so no matter what view model is to be passed back, it&#39;s always wrapped in an IResponseError object. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Documentation and Examples&lt;/b&gt;&lt;br/&gt;I figured it to be prudent to provide links to the documentation and example provided by Telerik so you don&#39;t have to hunt for it. &lt;ul&gt;  &lt;li&gt;&lt;a href=&quot;http://docs.telerik.com/kendo-ui/getting-started/using-kendo-with/aspnet-mvc/helpers/scheduler/mvc-scheduler-overview&quot;&gt;Scheduler Overview (Kendo Getting Started)&lt;/a&gt;&lt;/li&gt;  &lt;li&gt;&lt;a href=&quot;http://www.telerik.com/support/code-library/custom-editor-9fd60fca3c02&quot;&gt;Scheduler ASP.NET MVC Example (Kendo Code Library)&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;b&gt;Database Structure&lt;/b&gt;&lt;br/&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-ooKci6O0tNI/U2zkBVVdMkI/AAAAAAAAEZM/yhc3t9_D7yU/s1600/kendo-scheduler-database-structure.png&quot; imageanchor=&quot;1&quot; &gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-ooKci6O0tNI/U2zkBVVdMkI/AAAAAAAAEZM/yhc3t9_D7yU/s400/kendo-scheduler-database-structure.png&quot; /&gt;&lt;/a&gt;&lt;br/&gt;The database table structure is pretty straight-forward and you can add any columns you would like to it (and change &quot;Id&quot; to like &quot;EventId&quot;, etc).  Our view model will pull all of these columns. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Custom Attribute (from Telerik)&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;using System;&lt;br /&gt;using System.Linq;&lt;br /&gt;using System.ComponentModel.DataAnnotations;&lt;br /&gt;&lt;br /&gt;namespace MyProject.Common.Attributes&lt;br /&gt;{&lt;br /&gt;        public class DateGreaterThanAttribute : ValidationAttribute&lt;br /&gt;        {&lt;br /&gt;            private const string DEFAULT_ERROR_MSG_TEMPLATE = &amp;quot;{0} should be after {1}&amp;quot;;&lt;br /&gt;&lt;br /&gt;            public DateGreaterThanAttribute()&lt;br /&gt;            {&lt;br /&gt;                if (String.IsNullOrEmpty(ErrorMessage))&lt;br /&gt;                {&lt;br /&gt;                    ErrorMessage = DEFAULT_ERROR_MSG_TEMPLATE;&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            protected override ValidationResult IsValid(object value, ValidationContext validationContext)&lt;br /&gt;            {&lt;br /&gt;                DateTime? date = value != null ? (DateTime?)value : null;&lt;br /&gt;                var otherValue = validationContext.ObjectType.GetProperty(OtherField).GetValue(validationContext.ObjectInstance);&lt;br /&gt;                DateTime? otherDate = otherValue != null ? (DateTime?)otherValue : null;&lt;br /&gt;&lt;br /&gt;                TimeSpan diff = date.Value.Subtract(otherDate.Value);&lt;br /&gt;&lt;br /&gt;                if (date.HasValue &amp;amp;&amp;amp; otherDate.HasValue &amp;amp;&amp;amp; diff.TotalMinutes &amp;gt;= 0)&lt;br /&gt;                {&lt;br /&gt;                    return new ValidationResult(String.Format(ErrorMessage, validationContext.DisplayName, OtherField));&lt;br /&gt;                }&lt;br /&gt;&lt;br /&gt;                return ValidationResult.Success;&lt;br /&gt;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            public string OtherField { get; set; }&lt;br /&gt;        }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;This attribute is supplied by an example project that Telerik has built for ASP.NET MVC and wasn&#39;t homegrown by me. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Base View Model&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;using Kendo.Mvc.UI;&lt;br /&gt;using System;&lt;br /&gt;using System.ComponentModel.DataAnnotations;&lt;br /&gt;using System.Linq;&lt;br /&gt;using MyProject.Common.Attributes;&lt;br /&gt;&lt;br /&gt;namespace MyProject.Application.ViewModels.Calendars&lt;br /&gt;{&lt;br /&gt;    public class BaseCalendarViewModel : ISchedulerEvent&lt;br /&gt;    {&lt;br /&gt;        // Mandatory Fields&lt;br /&gt;        public string Title { get; set; }&lt;br /&gt;        public string Description { get; set; }&lt;br /&gt;        public string Recurrence { get; set; }&lt;br /&gt;        public string StartTimezone { get; set; }&lt;br /&gt;        public string EndTimezone { get; set; }&lt;br /&gt;&lt;br /&gt;        private DateTime start;&lt;br /&gt;&lt;br /&gt;        public DateTime Start&lt;br /&gt;        {&lt;br /&gt;            get&lt;br /&gt;            {&lt;br /&gt;                return start;&lt;br /&gt;            }&lt;br /&gt;            set&lt;br /&gt;            {&lt;br /&gt;                start = value.ToUniversalTime();&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        private DateTime end;&lt;br /&gt;&lt;br /&gt;        [Required]&lt;br /&gt;        [DateGreaterThan(OtherField = &amp;quot;Start&amp;quot;)]&lt;br /&gt;&lt;br /&gt;        public DateTime End&lt;br /&gt;        {&lt;br /&gt;            get&lt;br /&gt;            {&lt;br /&gt;                return end;&lt;br /&gt;            }&lt;br /&gt;            set&lt;br /&gt;            {&lt;br /&gt;                end = value.ToUniversalTime();&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        public string RecurrenceRule { get; set; }&lt;br /&gt;        public int? RecurrenceID { get; set; }&lt;br /&gt;        public string RecurrenceException { get; set; }&lt;br /&gt;        public bool IsAllDay { get; set; }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;We are building the view model as a &quot;base&quot; class so that we can have multiple variations of using the Scheduler widget within our application.  The main takeaway here is that this class &lt;b&gt;must inherit from the ISchedulerEvent&lt;/b&gt; (part of the Kendo.MVC.UI Namespace) &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Custom View Model&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;using System;&lt;br /&gt;using System.Linq;&lt;br /&gt;&lt;br /&gt;namespace MyProject.Application.ViewModels.Calendars&lt;br /&gt;{&lt;br /&gt;    public class CustomCalendarViewModel : BaseCalendarViewModel&lt;br /&gt;    {        &lt;br /&gt;        public int id { get; set; }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;Here we are creating our custom &quot;one-off&quot; view model that goes with our database table.  This model should only contain the fields that are not part of the &quot;base&quot; class we created earlier.  Here, we are inheriting from our custom &quot;base&quot; class that we created earlier. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Handlers&lt;/b&gt;&lt;br/&gt;For our handlers, we essentially have our normal CRUD (Create, Read, Update and Delete) methods.  In the Telerik example, they are using one handler as a service for all, but because my ORM is Peta Poco and I like to do things differently, my handlers are separated.  Either way you decide to go, as long as you have CRUD methods to link to, you should be ok. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Read (handler)&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;using Kendo.Mvc.UI;&lt;br /&gt;using System;&lt;br /&gt;using System.Linq;&lt;br /&gt;using System.Web.Mvc;&lt;br /&gt;using MyProject.Application.ViewModels.Calendars;&lt;br /&gt;using MyProject.Domain.PetaPoco;&lt;br /&gt;using MyProject.Domain.PetaPoco.Model;&lt;br /&gt;&lt;br /&gt;namespace MyProject.Application.Handlers.Calendars&lt;br /&gt;{&lt;br /&gt;    public class GetMyEventTableCalendar&lt;br /&gt;    {&lt;br /&gt;        private readonly IMyEventTableRepository _myEventTableRepository;&lt;br /&gt;&lt;br /&gt;        public GetMyEventTableCalendar(IMyEventTableRepository myEventTableRepository)&lt;br /&gt;        {&lt;br /&gt;            this._myEventTableRepository = myEventTableRepository;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        public virtual IQueryable&amp;lt;CustomCalendarViewModel&amp;gt; GetAll()&lt;br /&gt;        {&lt;br /&gt;            var sql = QueryBuilder.Select(&amp;quot;*&amp;quot;)&lt;br /&gt;                .From(&amp;quot;MyEventTable&amp;quot;);&lt;br /&gt;&lt;br /&gt;            var apps = _myEventTableRepository.Query&amp;lt;CustomCalendarViewModel&amp;gt;(sql);&lt;br /&gt;            return apps.ToList().Select(app =&amp;gt; new CustomCalendarViewModel&lt;br /&gt;            {&lt;br /&gt;                Id = app.Id,&lt;br /&gt;                Title = app.Title,&lt;br /&gt;                Start = DateTime.SpecifyKind(app.Start, DateTimeKind.Utc),&lt;br /&gt;                End = DateTime.SpecifyKind(app.End, DateTimeKind.Utc),&lt;br /&gt;                StartTimezone = app.StartTimezone,&lt;br /&gt;                EndTimezone = app.EndTimezone,&lt;br /&gt;                Description = app.Description,&lt;br /&gt;                IsAllDay = app.IsAllDay,                &lt;br /&gt;                RecurrenceRule = app.RecurrenceRule,&lt;br /&gt;                RecurrenceException = app.RecurrenceException,&lt;br /&gt;                RecurrenceID = app.RecurrenceID&lt;br /&gt;            }).AsQueryable();&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;The read is pretty easy to tell what&#39;s going on.  One extra thing I&#39;m doing here (like the Telerik example) is hand-stitching a list together so that I can transform the DateTime coming from the database (it&#39;s saved in the database as UTC, so I need to convert it back). &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Create / Update / Delete (handler)&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;using System;&lt;br /&gt;using System.Linq;&lt;br /&gt;using MyProject.Domain.PetaPoco.Model;&lt;br /&gt;using MyProject.Application.ViewModels.Calendars;&lt;br /&gt;using AutoMapper;&lt;br /&gt;&lt;br /&gt;namespace MyProject.Application.Handlers.Calendars&lt;br /&gt;{&lt;br /&gt;    public class SaveMyEventTableCalendar&lt;br /&gt;    {&lt;br /&gt;        private readonly IMyEventTableRepository myEventTableRepository;&lt;br /&gt;&lt;br /&gt;        public SaveMyEventTableCalendar(IMyEventTableRepository myEventTableRepository)&lt;br /&gt;        {&lt;br /&gt;            this.myEventTableRepository = myEventTableRepository;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        public IResponse&amp;lt;CalendarMyEventTableViewModel&amp;gt; Execute(CalendarMyEventTableViewModel app)&lt;br /&gt;        {&lt;br /&gt;            try&lt;br /&gt;            {&lt;br /&gt;                var domainModel = new MyEventTable();&lt;br /&gt;                var returnModel = new CalendarMyEventTableViewModel();&lt;br /&gt;&lt;br /&gt;                if ((app.Id != null) &amp;amp;&amp;amp; (app.Id &amp;gt; 0))&lt;br /&gt;                {&lt;br /&gt;                    //is edit, so we will update.&lt;br /&gt;                    domainModel = myEventTableRepository.Get&amp;lt;MyEventTable&amp;gt;(app.Id);&lt;br /&gt;                }&lt;br /&gt;                else&lt;br /&gt;                {&lt;br /&gt;                    //is new&lt;br /&gt;                }&lt;br /&gt;                &lt;br /&gt;                var mEventyTableId = myEventTableRepository.Save(Mapper.Map(app, domainModel));&lt;br /&gt;                if (Id != null)&lt;br /&gt;                    domainModel.MyEventTableId = Convert.ToInt32(myEventTableId);&lt;br /&gt;                var response = new Response&amp;lt;CalendarMyEventTableViewModel&amp;gt;();&lt;br /&gt;                response.Result = Mapper.Map(domainModel, new CalendarMyEventTableViewModel());&lt;br /&gt;&lt;br /&gt;                return response;&lt;br /&gt;            }&lt;br /&gt;            catch (Exception ex)&lt;br /&gt;            {&lt;br /&gt;                var errors = new ResponseErrors();&lt;br /&gt;                errors.Add(String.Empty, ex.Message);&lt;br /&gt;                return new Response&amp;lt;CalendarMyEventTableViewModel&amp;gt;(errors);&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;The Create, Update and Delete methods in the Controller will call the same SaveMyTableCalendarEvent handler.  This makes things nice and neat so that regardless of the event status (new or existing), the same Save handler gets executed.  The Delete method from the Controller, in my application, just passes back an Active = false and then saves the event for historical purposes, but you can easily create another handler specifically for deleting purposes. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Controller (my controller is AjaxController.cs&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;using Kendo.Mvc.UI;&lt;br /&gt;using Kendo.Mvc.Extensions;&lt;br /&gt;using System;&lt;br /&gt;using System.Collections.Generic;&lt;br /&gt;using System.Linq;&lt;br /&gt;using System.Web.Mvc;&lt;br /&gt;using MyProject.Application;&lt;br /&gt;using MyProject.Web.Controllers;&lt;br /&gt;using MyProject.Web.Models;&lt;br /&gt;using MyProject.Application.Handlers.Calendars;&lt;br /&gt;using MyProject.Application.ViewModels.Calendars;&lt;br /&gt;&lt;br /&gt;namespace MyProject.Web.Controllers&lt;br /&gt;{&lt;br /&gt;    public partial class AjaxController&lt;br /&gt;    {&lt;br /&gt;        public virtual JsonResult Read([DataSourceRequest] DataSourceRequest request)&lt;br /&gt;        {&lt;br /&gt;            var data = Using&amp;lt;GetMyEventTableCalendar&amp;gt;().GetAll().ToList();&lt;br /&gt;            return Json(data.ToDataSourceResult(request), JsonRequestBehavior.AllowGet);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        public virtual JsonResult Destroy([DataSourceRequest] DataSourceRequest request, CalendarMyEventTableViewModel app)&lt;br /&gt;        {&lt;br /&gt;            if (ModelState.IsValid)&lt;br /&gt;            {&lt;br /&gt;                var model = Using&amp;lt;SaveMyEventTableCalendar&amp;gt;().Execute(app);&lt;br /&gt;                if (model.HasErrors)&lt;br /&gt;                {&lt;br /&gt;                    foreach (var error in model.Errors)&lt;br /&gt;                    {&lt;br /&gt;                        AddError(error.Field, error.Error);&lt;br /&gt;                    }&lt;br /&gt;                }&lt;br /&gt;                return Json(new[] { model.Result }.ToDataSourceResult(request, ModelState));&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            return Json(new[] { app }.ToDataSourceResult(request, ModelState));&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        public virtual JsonResult Create([DataSourceRequest] DataSourceRequest request, CalendarMyEventTableViewModel app)&lt;br /&gt;        {&lt;br /&gt;            if (ModelState.IsValid)&lt;br /&gt;            {&lt;br /&gt;                var model = Using&amp;lt;SaveMyEventTableCalendar&amp;gt;().Execute(app);&lt;br /&gt;                if (model.HasErrors)&lt;br /&gt;                {&lt;br /&gt;                    foreach (var error in model.Errors)&lt;br /&gt;                    {&lt;br /&gt;                        AddError(error.Field, error.Error);&lt;br /&gt;                    }&lt;br /&gt;                }&lt;br /&gt;                return Json(new[] { model.Result }.ToDataSourceResult(request, ModelState));&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            return Json(new[] { app }.ToDataSourceResult(request, ModelState));&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        public virtual JsonResult Update([DataSourceRequest] DataSourceRequest request, CalendarMyEventTableViewModel app)&lt;br /&gt;        {&lt;br /&gt;            if (ModelState.IsValid)&lt;br /&gt;            {&lt;br /&gt;                var model = Using&amp;lt;SaveMyEventTableCalendar&amp;gt;().Execute(app);&lt;br /&gt;                if (model.HasErrors)&lt;br /&gt;                {&lt;br /&gt;                    foreach (var error in model.Errors)&lt;br /&gt;                    {&lt;br /&gt;                        AddError(error.Field, error.Error);&lt;br /&gt;                    }&lt;br /&gt;                }&lt;br /&gt;                return Json(new[] { model.Result }.ToDataSourceResult(request, ModelState));&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            return Json(new[] { app }.ToDataSourceResult(request, ModelState));&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        protected override void Dispose(bool disposing)&lt;br /&gt;        {&lt;br /&gt;            base.Dispose(disposing);&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;/code&gt;&lt;/pre&gt;These methods (very similar to those from the Telerik example) are pretty simple where they just call the handlers we have defined already.  The call I&#39;m doing is a &quot;Using&quot; statement, which is a custom interface to ObjectFactory for StructureMap (for MVC obviously). &lt;br/&gt;&lt;br/&gt;&lt;b&gt;View&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;@model MyProject.Application.ViewModels.Calendars.CalendarMyEventTableViewModel&lt;br /&gt;@using MyProject.Application.ViewModels.Calendars&lt;br /&gt;@{&lt;br /&gt;    ViewBag.Title = &amp;quot;Calendar&amp;quot;&lt;br /&gt;}&lt;br /&gt;&amp;lt;div class=&amp;quot;row mBottom15&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;div class=&amp;quot;col-md-12&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;h2&amp;gt;@ViewBag.Title&amp;lt;/h2&amp;gt;        &lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;style&amp;gt;&lt;br /&gt;    .k-window { width: 600px !important; }&lt;br /&gt;    .k-edit-field { width: inherit; }&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;@(Html.Kendo().Scheduler&amp;lt;CalendarMyEventTableViewModel&amp;gt;()&lt;br /&gt;    .Name(&amp;quot;scheduler&amp;quot;)&lt;br /&gt;    .Date(DateTime.Today)&lt;br /&gt;    .Views(views =&amp;gt;&lt;br /&gt;        {&lt;br /&gt;            views.DayView();&lt;br /&gt;            views.WeekView();&lt;br /&gt;            views.MonthView(month =&amp;gt; month.Selected(true));&lt;br /&gt;        })&lt;br /&gt;    .Timezone(&amp;quot;Etc/UTC&amp;quot;)&lt;br /&gt;    .DataSource(d =&amp;gt; d&lt;br /&gt;            .Model(m =&amp;gt;&lt;br /&gt;            {&lt;br /&gt;                m.Id(f =&amp;gt; f.Id);&lt;br /&gt;                m.Field(f =&amp;gt; f.Start);&lt;br /&gt;                m.Field(f =&amp;gt; f.End);&lt;br /&gt;                m.Field(f =&amp;gt; f.IsAllDay);&lt;br /&gt;                m.Field(f =&amp;gt; f.Title).DefaultValue(&amp;quot;No Title&amp;quot;);&lt;br /&gt;                m.Field(f =&amp;gt; f.RecurrenceRule);&lt;br /&gt;                m.Field(f =&amp;gt; f.Description);&lt;br /&gt;                m.RecurrenceId(f =&amp;gt; f.Recurrence);&lt;br /&gt;            })&lt;br /&gt;            .Events(e =&amp;gt; e.Error(&amp;quot;error_handler&amp;quot;))&lt;br /&gt;            .Read(&amp;quot;Read&amp;quot;, &amp;quot;Ajax&amp;quot;, new { })&lt;br /&gt;            .Create(&amp;quot;Create&amp;quot;, &amp;quot;Ajax&amp;quot;, new { })&lt;br /&gt;            .Destroy(&amp;quot;Destroy&amp;quot;, &amp;quot;Ajax&amp;quot;, new { })&lt;br /&gt;            .Update(&amp;quot;Update&amp;quot;, &amp;quot;Ajax&amp;quot;, new { })&lt;br /&gt;    )&lt;br /&gt;    .Editable(edit =&amp;gt;&lt;br /&gt;    {&lt;br /&gt;        edit.TemplateName(&amp;quot;MyEditorTemplate&amp;quot;);&lt;br /&gt;    })&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;@section Scripts {&lt;br /&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;    function error_handler(e) {&lt;br /&gt;        if (e.errors) {&lt;br /&gt;            var message = &amp;quot;Errors:\n&amp;quot;;&lt;br /&gt;            $.each(e.errors, function (key, value) {&lt;br /&gt;                if (&#39;errors&#39; in value) {&lt;br /&gt;                    $.each(value.errors, function () {&lt;br /&gt;                        message += this + &amp;quot;\n&amp;quot;;&lt;br /&gt;                    });&lt;br /&gt;                }&lt;br /&gt;            });&lt;br /&gt;            alert(message);&lt;br /&gt;&lt;br /&gt;            var scheduler = $(&amp;quot;#scheduler&amp;quot;).data(&amp;quot;kendoScheduler&amp;quot;);&lt;br /&gt;            scheduler.one(&amp;quot;dataBinding&amp;quot;, function (e) {&lt;br /&gt;                //prevent saving if server error is thrown&lt;br /&gt;                e.preventDefault();&lt;br /&gt;            })&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;}&lt;/code&gt;&lt;/pre&gt;The view is just a standard page with the Kendo UI Scheduler Widget.  Two key things within the widget:  (1) The Schema (which is the DataSource &gt; Model in MVC version), the fields you define here must match what is shown in the Custom Editor; (2) The custom event editor is called out by Editable &gt; edit.TemplateName  (and then just supply the name of the Editor Template).  Location of the editor template, in my opinion if it is unique to that view page, is to just create a sub folder called &quot;EditorTemplate&quot; within the folder where your view resides so that MVC Razor engine can locate it at run-time. &lt;br/&gt;&lt;br/&gt;&lt;b&gt;Editor Template&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;@model MyProject.Application.ViewModels.Calendars.CalendarMyEventTableViewModel&lt;br /&gt;@using MyProject.Common.Attributes&lt;br /&gt;@{&lt;br /&gt;    //required in order to render validation attributes&lt;br /&gt;    ViewContext.FormContext = new FormContext();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;@functions{&lt;br /&gt;    public Dictionary&amp;lt;string, object&amp;gt; generateDatePickerAttributes(&lt;br /&gt;           string elementId,&lt;br /&gt;           string fieldName,&lt;br /&gt;           string dataBindAttribute,&lt;br /&gt;           Dictionary&amp;lt;string, object&amp;gt; additionalAttributes = null)&lt;br /&gt;    {&lt;br /&gt;&lt;br /&gt;        Dictionary&amp;lt;string, object&amp;gt; datePickerAttributes = additionalAttributes != null ? new Dictionary&amp;lt;string, object&amp;gt;(additionalAttributes) : new Dictionary&amp;lt;string, object&amp;gt;();&lt;br /&gt;&lt;br /&gt;        datePickerAttributes[&amp;quot;id&amp;quot;] = elementId;&lt;br /&gt;        datePickerAttributes[&amp;quot;name&amp;quot;] = fieldName;&lt;br /&gt;        datePickerAttributes[&amp;quot;data-bind&amp;quot;] = dataBindAttribute;&lt;br /&gt;        datePickerAttributes[&amp;quot;required&amp;quot;] = &amp;quot;required&amp;quot;;&lt;br /&gt;        datePickerAttributes[&amp;quot;style&amp;quot;] = &amp;quot;z-index: inherit;&amp;quot;;&lt;br /&gt;&lt;br /&gt;        return datePickerAttributes;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&amp;lt;div id=&amp;quot;scheduler-pop&amp;quot; class=&amp;quot;w800&amp;quot;&amp;gt;&lt;br /&gt;    @Html.HiddenFor(m =&amp;gt; m.Id)&lt;br /&gt;    &amp;lt;div data-container-for=&amp;quot;Id&amp;quot; class=&amp;quot;k-edit-field hide&amp;quot;&amp;gt;&lt;br /&gt;        @Html.TextBoxFor(m =&amp;gt; m.Id)&lt;br /&gt;    &amp;lt;/div&amp;gt;    &lt;br /&gt;&lt;br /&gt;    &amp;lt;div class=&amp;quot;k-edit-label&amp;quot;&amp;gt;&lt;br /&gt;        @(Html.LabelFor(model =&amp;gt; model.Title))&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;div data-container-for=&amp;quot;title&amp;quot; class=&amp;quot;k-edit-field&amp;quot;&amp;gt;&lt;br /&gt;        @(Html.TextBoxFor(model =&amp;gt; model.Title, new { @class = &amp;quot;k-textbox&amp;quot;, data_bind = &amp;quot;value:title&amp;quot; }))&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;div class=&amp;quot;k-edit-label&amp;quot;&amp;gt;&lt;br /&gt;        @(Html.LabelFor(model =&amp;gt; model.Start))&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;div data-container-for=&amp;quot;start&amp;quot; class=&amp;quot;k-edit-field&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;        @(Html.Kendo().DateTimePickerFor(model =&amp;gt; model.Start)&lt;br /&gt;        .HtmlAttributes(generateDatePickerAttributes(&amp;quot;startDateTime&amp;quot;, &amp;quot;start&amp;quot;, &amp;quot;value:start,invisible:isAllDay&amp;quot;)))&lt;br /&gt;&lt;br /&gt;        @(Html.Kendo().DatePickerFor(model =&amp;gt; model.Start)&lt;br /&gt;        .HtmlAttributes(generateDatePickerAttributes(&amp;quot;startDate&amp;quot;, &amp;quot;start&amp;quot;, &amp;quot;value:start,visible:isAllDay&amp;quot;)))&lt;br /&gt;&lt;br /&gt;        &amp;lt;span data-bind=&amp;quot;text: startTimezone&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;        &amp;lt;span data-bind=&amp;quot;invisible: isAllDay&amp;quot;&amp;gt;&amp;lt;br /&amp;gt;Pick custom operation opening day and time.&amp;lt;/span&amp;gt;&lt;br /&gt;        &amp;lt;span data-for=&amp;quot;start&amp;quot; class=&amp;quot;k-invalid-msg&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;div class=&amp;quot;k-edit-label&amp;quot;&amp;gt;&lt;br /&gt;        @(Html.LabelFor(model =&amp;gt; model.End))&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;div data-container-for=&amp;quot;end&amp;quot; class=&amp;quot;k-edit-field&amp;quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;        @(Html.Kendo().DateTimePickerFor(model =&amp;gt; model.End)&lt;br /&gt;        .HtmlAttributes(generateDatePickerAttributes(&lt;br /&gt;            &amp;quot;endDateTime&amp;quot;,&lt;br /&gt;            &amp;quot;end&amp;quot;,&lt;br /&gt;            &amp;quot;value:end,invisible:isAllDay&amp;quot;,&lt;br /&gt;            new Dictionary&amp;lt;string, object&amp;gt;() { { &amp;quot;data-dateCompare-msg&amp;quot;, &amp;quot;End date should be greater than or equal to the start date&amp;quot; } })))&lt;br /&gt;&lt;br /&gt;        @(Html.Kendo().DatePickerFor(model =&amp;gt; model.End)&lt;br /&gt;        .HtmlAttributes(generateDatePickerAttributes(&lt;br /&gt;            &amp;quot;endDate&amp;quot;,&lt;br /&gt;            &amp;quot;end&amp;quot;,&lt;br /&gt;            &amp;quot;value:end,visible:isAllDay&amp;quot;,&lt;br /&gt;            new Dictionary&amp;lt;string, object&amp;gt;() { { &amp;quot;data-dateCompare-msg&amp;quot;, &amp;quot;End date should be greater than or equal to the start date&amp;quot; } })))&lt;br /&gt;&lt;br /&gt;        &amp;lt;span data-bind=&amp;quot;text: endTimezone&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;        &amp;lt;span data-bind=&amp;quot;invisible: isAllDay&amp;quot;&amp;gt;&amp;lt;br /&amp;gt;Pick custom operation closing day and time.&amp;lt;/span&amp;gt;&lt;br /&gt;        &amp;lt;span data-for=&amp;quot;end&amp;quot; class=&amp;quot;k-invalid-msg&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;div class=&amp;quot;k-edit-label&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;label for=&amp;quot;IsAllDay&amp;quot;&amp;gt;@Resources.Calendar.IsClosedAllDay&amp;lt;/label&amp;gt;&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;div data-container-for=&amp;quot;IsAllDay&amp;quot; class=&amp;quot;k-edit-field&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;input type=&amp;quot;checkbox&amp;quot; data-bind=&amp;quot;checked: isAllDay&amp;quot; id=&amp;quot;IsAllDay&amp;quot; name=&amp;quot;IsAllDay&amp;quot; class=&amp;quot;bootstrap-checkbox&amp;quot; /&amp;gt;&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;    @*&amp;lt;div class=&amp;quot;endTimezoneRow&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;div class=&amp;quot;k-edit-label&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;div class=&amp;quot;k-edit-field&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;label class=&amp;quot;k-check&amp;quot;&amp;gt;&lt;br /&gt;                &amp;lt;input checked=&amp;quot;checked&amp;quot; class=&amp;quot;k-timezone-toggle&amp;quot; type=&amp;quot;checkbox&amp;quot; value=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;                Use separate start and end time zones&lt;br /&gt;            &amp;lt;/label&amp;gt;&lt;br /&gt;        &amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;/div&amp;gt;*@&lt;br /&gt;    @*&amp;lt;script&amp;gt;&lt;br /&gt;        $(&amp;quot;.k-timezone-toggle&amp;quot;).on(&amp;quot;click&amp;quot;, function () {&lt;br /&gt;            var isVisible = $(this).is(&amp;quot;:checked&amp;quot;);&lt;br /&gt;            var container = $(this).closest(&amp;quot;.k-popup-edit-form&amp;quot;);&lt;br /&gt;&lt;br /&gt;            var endTimezoneRow = container.find(&amp;quot;label[for=&#39;EndTimezone&#39;]&amp;quot;).parent().add(container.find(&amp;quot;div[data-container-for=&#39;endTimezone&#39;]&amp;quot;));&lt;br /&gt;            endTimezoneRow.toggle(isVisible);&lt;br /&gt;&lt;br /&gt;            if (!isVisible) {&lt;br /&gt;                var uid = container.attr(&amp;quot;data-uid&amp;quot;);&lt;br /&gt;                var scheduler = $(&amp;quot;\#scheduler&amp;quot;).data(&amp;quot;kendoScheduler&amp;quot;);&lt;br /&gt;                var model = scheduler.dataSource.getByUid(uid);&lt;br /&gt;                model.set(&amp;quot;endTimezone&amp;quot;, null);&lt;br /&gt;            }&lt;br /&gt;        });&lt;br /&gt;&lt;br /&gt;        var endTimezone = &#39;${data.endTimezone}&#39;;&lt;br /&gt;&lt;br /&gt;        if (!endTimezone || endTimezone == &amp;quot;null&amp;quot;) {&lt;br /&gt;            $(&amp;quot;.k-timezone-toggle&amp;quot;).trigger(&#39;click&#39;);&lt;br /&gt;        }&lt;br /&gt;    &amp;lt;/script&amp;gt;*@&lt;br /&gt;&lt;br /&gt;    @*&amp;lt;div class=&amp;quot;k-edit-label&amp;quot;&amp;gt;&lt;br /&gt;        @(Html.LabelFor(model =&amp;gt; model.StartTimezone))&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;div data-container-for=&amp;quot;startTimezone&amp;quot; class=&amp;quot;k-edit-field&amp;quot;&amp;gt;&lt;br /&gt;        @(Html.Kendo().TimezoneEditorFor(model =&amp;gt; model.StartTimezone)&lt;br /&gt;        .HtmlAttributes(new { data_bind = &amp;quot;value:startTimezone&amp;quot; }))&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;div class=&amp;quot;k-edit-label&amp;quot;&amp;gt;&lt;br /&gt;        @(Html.LabelFor(model =&amp;gt; model.EndTimezone))&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;div data-container-for=&amp;quot;endTimezone&amp;quot; class=&amp;quot;k-edit-field&amp;quot;&amp;gt;&lt;br /&gt;        @(Html.Kendo().TimezoneEditorFor(model =&amp;gt; model.EndTimezone)&lt;br /&gt;        .HtmlAttributes(new { data_bind = &amp;quot;value:endTimezone&amp;quot; }))&lt;br /&gt;    &amp;lt;/div&amp;gt;*@&lt;br /&gt;&lt;br /&gt;    &amp;lt;div class=&amp;quot;k-edit-label&amp;quot;&amp;gt;&lt;br /&gt;        @(Html.LabelFor(model =&amp;gt; model.RecurrenceRule))&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;div data-container-for=&amp;quot;recurrenceRule&amp;quot; class=&amp;quot;k-edit-field&amp;quot;&amp;gt;&lt;br /&gt;        @(Html.Kendo().RecurrenceEditorFor(model =&amp;gt; model.RecurrenceRule)&lt;br /&gt;        .HtmlAttributes(new { data_bind = &amp;quot;value:recurrenceRule&amp;quot; }))&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;div class=&amp;quot;k-edit-label&amp;quot;&amp;gt;&lt;br /&gt;        @(Html.LabelFor(model =&amp;gt; model.Description))&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;div data-container-for=&amp;quot;description&amp;quot; class=&amp;quot;k-edit-field&amp;quot;&amp;gt;&lt;br /&gt;        @(Html.TextAreaFor(model =&amp;gt; model.Description, new { @class = &amp;quot;k-textbox&amp;quot;, data_bind = &amp;quot;value:description&amp;quot; }))&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;@{&lt;br /&gt;    ViewContext.FormContext = null;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;The editor template above contains all the columns specified in our schema (datasource &gt; model in asp.net mvc, but &quot;schema&quot; in the JavaScript version of Kendo Scheduler) and all the columns match our custom view model and columns from the base view model.  If you are to have custom drop-down-lists or other controls that need to get data, plan on getting that via AJAX binding via JavaScript and not from the server.  It is just easier and more flexible for rebinding, cascading, etc. &lt;br/&gt;&lt;br/&gt;The Kendo UI Scheduler also has the home-brewed MVVM built into the Event Template, so keep &lt;br/&gt;&lt;br/&gt;The main point to all this is to layout the parts necessary to be successful in creating a Kendo UI Scheduler widget in an ASP.NET MVC project.  I hope that this sheds some light on the subject and helps at least one other person out (other than being a reference for me later ;) ) &lt;br/&gt;&lt;br/&gt;Cheers!</description><link>http://www.jwc3.net/2014/05/kendo-ui-scheduler-with-aspnet-mvc-and.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-SIodYrkJQE0/T6KY8Cgr_nI/AAAAAAAAAdI/JAqRMiTiMLo/s72-c/net_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-4050679472956153126</guid><pubDate>Thu, 08 May 2014 15:08:00 +0000</pubDate><atom:updated>2014-05-08T11:09:18.581-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">AJAX</category><category domain="http://www.blogger.com/atom/ns#">Forms</category><category domain="http://www.blogger.com/atom/ns#">HTML</category><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><category domain="http://www.blogger.com/atom/ns#">jQuery</category><title>Change Form Action on Form Submit with jQuery</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s1600/javascript_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s200/javascript_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;I recently had a situation that called for me to be able to toggle the form action on the fly depending on what was clicked.&amp;nbsp; The reason behind this is that I needed to stream a file back from some data, and you cannot stream a file via AJAX calls.&amp;nbsp; Your only option is to do a full-page form post.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Form:&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;form action=&amp;quot;/Home/PostMyForm&amp;quot; method=&amp;quot;post&amp;quot; id=&amp;quot;MyForm&amp;quot;&amp;gt;&lt;br /&gt;  &amp;lt;input type=&amp;quot;hidden&amp;quot; id=&amp;quot;someId&amp;quot; name=&amp;quot;someId&amp;quot; value=&amp;quot;SomeValue&amp;quot; /&amp;gt;&lt;br /&gt;  &amp;lt;input type=&amp;quot;submit&amp;quot; id=&amp;quot;SubmitForm&amp;quot; value=&amp;quot;Submit Form&amp;quot; /&amp;gt;&lt;br /&gt;  &amp;lt;button id=&amp;quot;GetFile&amp;quot;&amp;gt;Get File&amp;lt;/button&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;b&gt;and the JavaScript&lt;/b&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;  $(function() {&lt;br /&gt;    $(&amp;quot;#GetFile&amp;quot;).click(function (e) {&lt;br /&gt;      e.preventDefault();&lt;br /&gt;&lt;br /&gt;      // Perform any other logic for normal form submission&lt;br /&gt;&lt;br /&gt;      $(&amp;quot;#MyForm&amp;quot;).prop(&amp;quot;action&amp;quot;, &amp;quot;/Home/GetMyFile&amp;quot;);&lt;br /&gt;      $(&amp;quot;#MyForm&amp;quot;).submit();&lt;br /&gt;    });&lt;br /&gt;  });&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/pre&gt;As you can see, it&#39;s really just changing a property on the DOM element (form) within a custom click event.  It is a simple code to write, but doing this versus some complex routine in a server-side language is usually not considered because it&#39;s in JavaScript.  It works and will work every time (unless there is a breaking JavaScript error before this is run of course). &lt;br/&gt;Cheers!   </description><link>http://www.jwc3.net/2014/05/change-form-action-on-form-submit-with.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s72-c/javascript_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-2249320958783642658</guid><pubDate>Mon, 15 Apr 2013 19:34:00 +0000</pubDate><atom:updated>2014-05-08T10:13:07.038-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">jQuery</category><category domain="http://www.blogger.com/atom/ns#">Kendo</category><category domain="http://www.blogger.com/atom/ns#">MVC</category><category domain="http://www.blogger.com/atom/ns#">Telerik</category><title>Using Kendo 2013.1 with MVC 4</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-SIodYrkJQE0/T6KY8Cgr_nI/AAAAAAAAAdI/JAqRMiTiMLo/s1600/net_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-SIodYrkJQE0/T6KY8Cgr_nI/AAAAAAAAAdI/JAqRMiTiMLo/s200/net_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;If you have an ASP.NET MVC 4 project and have just upgraded to Kendo&#39;s 2013.1 release, the first thing you&#39;ll probably notice is that you are getting a JS error for the &quot;.live()&quot; function.&amp;nbsp; Well, this is in part because as of jQuery 1.9.0 (Kendo 2013.1 uses 1.9.1), .live() and other functions built into the jquery-unobtrusive-ajax.js have been removed.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;The fix?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Comment out this line referencing Kendo&#39;s version of jQuery:&lt;/li&gt;&lt;/ol&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;&amp;lt;script src=&quot;@Url.Content(&quot;~/Scripts/kendo/2013.1.319.min.js&quot;)&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;script font=&quot;&quot; src=&quot;@Url.Content&quot;&gt;&lt;strong&gt;~/Scripts/kendo/2013.1.319/jquery.min.js&lt;/strong&gt;&lt;font color=&quot;#ff0000&quot;&gt;&quot;)&quot;&gt;&lt;/script&gt;&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Add a reference to any version of jQuery from 1.7.2 to &lt;strong&gt;1.8.3&lt;/strong&gt; (highest you can go at the time of this post)&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;lt;script src=&quot;&lt;strong&gt;~/Scripts/jquery-1.8.3.min.js&lt;/strong&gt;&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;script src=&quot;@Url.Content&quot; &lt;strong&gt;&lt;font color=&quot;#000000&quot;&gt;~/Scripts/jquery-1.8.3.min.js&lt;/font&gt;&lt;/strong&gt;&quot;)&quot;&gt;&lt;/script&gt;&lt;/span&gt;&lt;br/&gt;&lt;/li&gt;&lt;li&gt;Enjoy!&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Note:&amp;nbsp; I haven&#39;t experienced any Kendo issues yet by doing this, but they may exist.&amp;nbsp; I figured I&#39;d rather have 98% of the site work now rather than degrade Kendo back to a 2012 version.&amp;nbsp; :)&lt;br /&gt;&lt;br /&gt;2nd Note: It is implied that you have the version of jquery that you are referencing either in your project or referencing a CDN.  Obviously, you can&#39;t reference something that doesn&#39;t exist!  LOL</description><link>http://www.jwc3.net/2013/04/using-kendo-20131-with-mvc-4.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-SIodYrkJQE0/T6KY8Cgr_nI/AAAAAAAAAdI/JAqRMiTiMLo/s72-c/net_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-7047702276055702806</guid><pubDate>Sat, 19 May 2012 04:00:00 +0000</pubDate><atom:updated>2012-05-19T00:00:00.715-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Adobe</category><category domain="http://www.blogger.com/atom/ns#">Fireworks</category><category domain="http://www.blogger.com/atom/ns#">James&#39; Best Practices</category><category domain="http://www.blogger.com/atom/ns#">UI</category><title>Using Built-In Styles in Adobe Fireworks</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-GsdYeMnJOts/T6KXMvwD1yI/AAAAAAAAAc4/mvEIHzW4C1g/s1600/ui_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-GsdYeMnJOts/T6KXMvwD1yI/AAAAAAAAAc4/mvEIHzW4C1g/s1600/ui_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Did you know that Adobe Fireworks has &lt;b&gt;built-in styling&lt;/b&gt; that you can use?&amp;nbsp; Say what?&amp;nbsp; Just like the built-in gradients and textures, there&#39;s also built-in styling that can help rapid develop any images you are doing, perhaps for a quick mockup design or wire frame-type of image.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;First things First&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;To make things simple, just start a new image and throw some shapes and text out onto the canvas.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-n8RmTk0yhFk/T7Y-XhzAxCI/AAAAAAAAAis/blzL4e5C-Ns/s1600/01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;251&quot; src=&quot;http://4.bp.blogspot.com/-n8RmTk0yhFk/T7Y-XhzAxCI/AAAAAAAAAis/blzL4e5C-Ns/s320/01.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Applying Styles&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Go ahead and select one of your shapes.&amp;nbsp; Then in the panels section, click on&lt;b&gt; Styles&lt;/b&gt; to open the &lt;b&gt;Styles Window Flyout&lt;/b&gt;.&amp;nbsp; There will be a&lt;b&gt; drop-down&lt;/b&gt; menu that says &quot;&lt;b&gt;Current Document&lt;/b&gt;&quot;.&amp;nbsp; Go ahead and click on that to expose the built-in styles of Adobe Fireworks.&amp;nbsp; In my example below, I&#39;m choosing &lt;b&gt;Old Paper Styles&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-Ya3n5GXt6Pc/T7Y-gBE2KkI/AAAAAAAAAi0/HnxVAlmwW8s/s1600/02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;211&quot; src=&quot;http://4.bp.blogspot.com/-Ya3n5GXt6Pc/T7Y-gBE2KkI/AAAAAAAAAi0/HnxVAlmwW8s/s320/02.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Next, you can select one of the thumbnail displayed in the type of style you chose to see the effect on your shape that you had selected.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-FbgPGZqnogI/T7Y-2Yu7D9I/AAAAAAAAAi8/MysZRq7aZcg/s1600/03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;189&quot; src=&quot;http://4.bp.blogspot.com/-FbgPGZqnogI/T7Y-2Yu7D9I/AAAAAAAAAi8/MysZRq7aZcg/s320/03.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Next, go ahead and select another shape and we&#39;ll apply a different style to it.&amp;nbsp; In my example below, I selected the rectangle and applied a &lt;b&gt;diagonal style&lt;/b&gt; to it, applied a &lt;b&gt;50% transparency &lt;/b&gt;and changed the &lt;b&gt;canvas&lt;/b&gt; from &lt;b&gt;white to transparent&lt;/b&gt; (so you could see the effect).&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-L1ZLTmsFU8A/T7Y_xYyg5XI/AAAAAAAAAjE/TfB9EGPW1Bo/s1600/04.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;185&quot; src=&quot;http://3.bp.blogspot.com/-L1ZLTmsFU8A/T7Y_xYyg5XI/AAAAAAAAAjE/TfB9EGPW1Bo/s320/04.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Lastly, let&#39;s apply a style to that boring text.&amp;nbsp; Select the text and then choose one of the Text Style groups in the Style drop-down.&amp;nbsp; In my example below, I&#39;m using the blue-white style under the Text Creative Styles group.&amp;nbsp; You can see the desired effect below.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-YKR6kEJ2jZ8/T7ZArJKeCOI/AAAAAAAAAjM/J-3KzF-zv2o/s1600/05.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;182&quot; src=&quot;http://2.bp.blogspot.com/-YKR6kEJ2jZ8/T7ZArJKeCOI/AAAAAAAAAjM/J-3KzF-zv2o/s320/05.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;strong&gt;The Conclusion&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The Styles from Adobe Fireworks are very handy, especially if you are just trying to brainstorm about different look and feels for shapes and text to make your image.&amp;nbsp; We&#39;ve all been there, just staring at a blank canvas, not knowing where to start.&amp;nbsp; This at least makes it a tad easier. :)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Cheers!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: #e2e2e2; border: 4px solid rgb(0, 0, 0); color: blue; margin: auto; padding: 10px; text-align: center; width: 300px;&quot;&gt;&lt;b&gt;If you found this article helpful, please spare a couple dollars for starving bloggers.  :)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;DTVXAQVSA3EWN&quot; /&gt;&lt;input alt=&quot;PayPal - The safer, easier way to pay online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/en_US/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;&lt;/form&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.jwc3.net/2012/05/using-built-in-styles-in-adobe.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-GsdYeMnJOts/T6KXMvwD1yI/AAAAAAAAAc4/mvEIHzW4C1g/s72-c/ui_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-5214972161226367112</guid><pubDate>Fri, 18 May 2012 04:09:00 +0000</pubDate><atom:updated>2012-05-18T00:11:35.612-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Adobe</category><category domain="http://www.blogger.com/atom/ns#">Fireworks</category><category domain="http://www.blogger.com/atom/ns#">Graphics</category><category domain="http://www.blogger.com/atom/ns#">James&#39; Best Practices</category><category domain="http://www.blogger.com/atom/ns#">UI</category><title>Optimize Image File Sizes in Adobe Fireworks</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-GsdYeMnJOts/T6KXMvwD1yI/AAAAAAAAAc4/mvEIHzW4C1g/s1600/ui_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-GsdYeMnJOts/T6KXMvwD1yI/AAAAAAAAAc4/mvEIHzW4C1g/s1600/ui_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;One thing that usually (not always) I&#39;m pretty particular about is maximizing the performance of my web applications by making sure that the images we&#39;re using, regardless if they are GIF, PNG or JPG, are all looking great and are the smallest file size that they can be (best of both worlds).&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Set up your Image in Adobe Fireworks&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;Just create an image or open one that you may already have handy.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-LFrXjn3x3zk/T7XHcV8MNpI/AAAAAAAAAh0/25J4GtzBZsk/s1600/01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;235&quot; src=&quot;http://4.bp.blogspot.com/-LFrXjn3x3zk/T7XHcV8MNpI/AAAAAAAAAh0/25J4GtzBZsk/s320/01.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;Working with the Image&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The first thing you want to do us just under the image name, click on the &quot;2 Up&quot; tab to show what the image will look like in your Export mode from what you select under the Optimize category in the windows sections.&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/--ouYob1Spug/T7XHkavO3kI/AAAAAAAAAh8/HjrGe0wIOsw/s1600/02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;195&quot; src=&quot;http://1.bp.blogspot.com/--ouYob1Spug/T7XHkavO3kI/AAAAAAAAAh8/HjrGe0wIOsw/s320/02.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Next, click on the Optimize section to force the flyout window to open.&amp;nbsp; If you set your Image Type to PNG 32, you&#39;ll notice in the bottom of the Image Window (bottom left of the image below) the file size if you export this image in a PNG 32 format.&amp;nbsp; In this case, it&#39;s 33.4K in size.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-Z4uoQBGtFME/T7XHuB26VKI/AAAAAAAAAiE/fduAhskE_dE/s1600/03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;293&quot; src=&quot;http://1.bp.blogspot.com/-Z4uoQBGtFME/T7XHuB26VKI/AAAAAAAAAiE/fduAhskE_dE/s320/03.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Next, change the Image Type to PNG 8 (bit), and see if the image still looks OK.&amp;nbsp; If the image is fine, then check the file size now.&amp;nbsp; In my example below, the image is still acceptable, and the file size just dropped to 14.2K!&amp;nbsp; We just saved 19.4K off of one image!&amp;nbsp; That may not seem like much in this age of broadband Internet, but multiply that by 10&#39;s of thousands of users, let alone millions and that unnecessary addage of the file size sure becomes a big deal then.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-izCqbEs2XJ8/T7XIFdXTrSI/AAAAAAAAAiM/1W46Oz7RlR0/s1600/04.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://2.bp.blogspot.com/-izCqbEs2XJ8/T7XIFdXTrSI/AAAAAAAAAiM/1W46Oz7RlR0/s320/04.jpg&quot; width=&quot;268&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Just to be fair, PNG 8 (bit) may not be the smallest size versus quality image we can achieve.&amp;nbsp; So, let&#39;s look at GIF next to see if there are any file size savings.&amp;nbsp; Switch the Image Type to GIF.&amp;nbsp; As you can see in the image below, the file size jumped to a whopping 29.3K!&amp;nbsp; Oops, that was the wrong direction to go.&amp;nbsp; So, in this case, GIF is not the export of choice.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-PC5_abn1Fpg/T7XIxBZbkpI/AAAAAAAAAiU/Row_mvClKIs/s1600/05.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://1.bp.blogspot.com/-PC5_abn1Fpg/T7XIxBZbkpI/AAAAAAAAAiU/Row_mvClKIs/s320/05.jpg&quot; width=&quot;259&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Next, lets try JPG as the export.  Change the Image Type to JPG and set the Quality to 72 (web standard -- only things destined for printing need to go higher).&amp;nbsp; Look at the file size now for the export -- it&#39;s 12 K!&amp;nbsp; What?&amp;nbsp; Smaller than the PNG 8 (bit) image?&amp;nbsp; Yup, that&#39;s right.&amp;nbsp; In this particular case the JPG wins in the smallest file size export of the image from Adobe Fireworks.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-TcHww13F9b0/T7XJcx00WRI/AAAAAAAAAic/bkD9GUa9p9Y/s1600/06.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://4.bp.blogspot.com/-TcHww13F9b0/T7XJcx00WRI/AAAAAAAAAic/bkD9GUa9p9Y/s320/06.jpg&quot; width=&quot;261&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;strong&gt;The Conclusion&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The examples above worked out the way they did, JPG being the smallest versus best looking of the bunch, based on the image used.&amp;nbsp; Depending on if you are using a photo, hand drawing, or a lot of text, your export flavor of PNG, GIF or JPG will vary.&amp;nbsp; So, this walkthrough takes care of the images individually, next post on this topic will be around using Sprites where you can to save on HTML Requests.&amp;nbsp; :)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Cheers!&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: #e2e2e2; border: 4px solid rgb(0, 0, 0); color: blue; margin: auto; padding: 10px; text-align: center; width: 300px;&quot;&gt;&lt;b&gt;If you found this article helpful, please spare a couple dollars for starving bloggers.  :)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;DTVXAQVSA3EWN&quot; /&gt;&lt;input alt=&quot;PayPal - The safer, easier way to pay online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/en_US/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;&lt;/form&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.jwc3.net/2012/05/optimize-image-file-sizes-in-adobe.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-GsdYeMnJOts/T6KXMvwD1yI/AAAAAAAAAc4/mvEIHzW4C1g/s72-c/ui_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-6323373473734379841</guid><pubDate>Thu, 17 May 2012 04:11:00 +0000</pubDate><atom:updated>2012-05-17T00:12:37.644-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><category domain="http://www.blogger.com/atom/ns#">jQuery</category><category domain="http://www.blogger.com/atom/ns#">MVC</category><category domain="http://www.blogger.com/atom/ns#">UX</category><title>Check if UserName exists via jQuery, AJAX and ASP.NET MVC</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-zK2QdVMuxj8/T6KOhuJS14I/AAAAAAAAAcs/a_stopxIaGY/s1600/ux_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-zK2QdVMuxj8/T6KOhuJS14I/AAAAAAAAAcs/a_stopxIaGY/s1600/ux_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Here is a little nugget of code that I use on our gaming site &lt;a href=&quot;http://socialcow.com/&quot;&gt;SocialCow.com&lt;/a&gt;.&amp;nbsp; If you are comfortable already with jQuery, then this will be a no-brainer.&amp;nbsp;&amp;nbsp;&amp;nbsp; You can take the same &quot;.post&quot; jQuery method and switch out the MVC call for like a web service or call like an ASP.NET / Web Method.&amp;nbsp; It doesn&#39;t matter as the guts of what it&#39;s doing is in JavaScript / jQuery.&amp;nbsp; :)&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;HTML&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;The HTML here is pretty simple (if you didn&#39;t notice I like to have it that way for the people reading my blogs ;) ).&amp;nbsp; Essentially, you need just a input box and somewhere to put the status text.&amp;nbsp; I ended up just using a simple Div layer.&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;input type=&quot;text&quot; name=&quot;UserName&quot; id=&quot;UserName&quot; /&amp;gt;&lt;br /&gt;&amp;lt;div id=&quot;divStatus&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;JavaScript / jQuery&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;The JavaScript isn&#39;t too bad either here.&amp;nbsp; Basically, we&#39;re looking for the keyup on the UserName field and we only care when they enter in more than 3 characters, otherwise it ignores the AJAX call (and saves a call to the service / database too).&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #eeeeee; border: 1px dashed #999999; color: black; font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; font-size: 12px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;&quot;&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;    $(&quot;#UserName&quot;).keyup(function () {&lt;br /&gt;        var name = $(&quot;#UserName&quot;).val(); //Value entered in the text box&lt;br /&gt;        var status = $(&quot;#divStatus&quot;); //DIV object to display the status message&lt;br /&gt;        var user = $.trim(name);&lt;br /&gt;        if (user.length &amp;gt; 3) {&lt;br /&gt;            status.html(&quot;Checking....&quot;) //While our Thread works, we will show some message to indicate the progress&lt;br /&gt;            //jQuery AJAX Post request&lt;br /&gt;            $.post(&quot;/Account/CheckName&quot;, { username: name },&lt;br /&gt;                        function (data) {&lt;br /&gt;                            if (data == true) {&lt;br /&gt;                                status.html(&quot;&amp;lt;font color=green&amp;gt;&#39;&amp;lt;b&amp;gt;&quot; + name + &quot;&amp;lt;/b&amp;gt;&#39; is available!&amp;lt;/font&amp;gt;&quot;);&lt;br /&gt;                            } else {&lt;br /&gt;                                status.html(&quot;&amp;lt;font color=red&amp;gt;&#39;&amp;lt;b&amp;gt;&quot; + name + &quot;&amp;lt;/b&amp;gt;&#39; is not available!&amp;lt;/font&amp;gt;&quot;);&lt;br /&gt;                            }&lt;br /&gt;                        });&lt;br /&gt;        } else {&lt;br /&gt;            status.html(&quot;Need more characters...&quot;);&lt;br /&gt;        }&lt;br /&gt;    });&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;This code above is a nice little gem to have. I&#39;ve had it for a few years now, and thought that I&#39;d pull it from the James vault of code to share.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Cheers!&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: #e2e2e2; border: 4px solid #000000; color: blue; margin: auto; padding: 10px; text-align: center; width: 300px;&quot;&gt;&lt;b&gt;If you found this article helpful, please spare a couple dollars for starving bloggers.  :)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;DTVXAQVSA3EWN&quot; /&gt;&lt;input alt=&quot;PayPal - The safer, easier way to pay online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/en_US/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;&lt;/form&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.jwc3.net/2012/05/check-if-username-exists-via-jquery.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-zK2QdVMuxj8/T6KOhuJS14I/AAAAAAAAAcs/a_stopxIaGY/s72-c/ux_icon.png" height="72" width="72"/><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-1333085247725928608</guid><pubDate>Wed, 16 May 2012 04:00:00 +0000</pubDate><atom:updated>2012-05-16T00:00:01.193-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">AJAX</category><category domain="http://www.blogger.com/atom/ns#">ASP.NET</category><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><category domain="http://www.blogger.com/atom/ns#">jQuery</category><category domain="http://www.blogger.com/atom/ns#">Telerik</category><category domain="http://www.blogger.com/atom/ns#">UX</category><title>Adding Custom Link to Telerik RadScheduler Header Navigation</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-adF-4vAu9C4/T6KOYeqE-8I/AAAAAAAAAck/Dn2hztnZFxc/s1600/ux_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-adF-4vAu9C4/T6KOYeqE-8I/AAAAAAAAAck/Dn2hztnZFxc/s1600/ux_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Do you have a need to add a custom link or action to your &lt;a href=&quot;http://www.telerik.com/products/aspnet-ajax/scheduler.aspx&quot; target=&quot;_blank&quot;&gt;Telerik RadScheduler&lt;/a&gt;?&amp;nbsp; I had a need, even though rarely used, to add a &quot;Refresh&quot; link to slap the calendar around when someone might be viewing the calendar, but appointments may be added via the booking process by a custom and/or another user in the system (talking about my project &lt;a href=&quot;http://timegears.com/&quot; target=&quot;_blank&quot;&gt;@TimeGears&lt;/a&gt;, btw).&amp;nbsp; I know what you&#39;re thinking: &quot;James, isn&#39;t that what AJAX is for?&quot; -- yes, I know, but sometimes things hang for whatever reason, and some of our business users like having a manual button there as if it&#39;s an &quot;Easy button&quot; from Staples to make appointments appear.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The Code&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;The code is pretty simple (as most of my posts strive to be), and the idea is this is to be intermixed with the other JavaScript code you have for your &lt;a href=&quot;http://www.telerik.com/products/aspnet-ajax/scheduler.aspx&quot; target=&quot;_blank&quot;&gt;Telerik RadScheduler&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 13;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;loadRefreshButton()&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;.rsHeader&amp;nbsp;UL&amp;nbsp;LI&amp;nbsp;.rsLast&#39;&lt;/span&gt;).removeClass(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;rsLast&#39;&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;.rsHeader&amp;nbsp;UL&#39;&lt;/span&gt;).append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;li&amp;nbsp;class=&quot;rslast&amp;nbsp;pointer&quot;&amp;nbsp;id=&quot;refreshcal&quot;&gt;&lt;a&amp;nbsp;href=&quot;#&quot;&amp;nbsp;class=&quot;orange&quot;&gt;REFRESH&#39;&lt;/a&amp;nbsp;href=&quot;#&quot;&amp;nbsp;class=&quot;orange&quot;&gt;&lt;/li&amp;nbsp;class=&quot;rslast&amp;nbsp;pointer&quot;&amp;nbsp;id=&quot;refreshcal&quot;&gt;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.click(&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;()&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;location.reload(&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;The JavaScript function is straight forward.  It is just called in the $(function(){ }); command after the DOM is loaded and adds the Link Action &quot;Refresh&quot;.&amp;nbsp; In my case, my &lt;a href=&quot;http://www.telerik.com/products/aspnet-ajax/scheduler.aspx&quot; target=&quot;_blank&quot;&gt;Telerik RadCalendar&lt;/a&gt; is being loading in a Modal IFrame.&amp;nbsp; It is very complex and I didn&#39;t want it to mingle with the main page code nor want it to be pushed down by the site&#39;s navigation header.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;The Result&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;As expected, the JavaScript and jQuery code add a &quot;Refresh&quot; link to the UL list of links atop of the &lt;a href=&quot;http://www.telerik.com/products/aspnet-ajax/scheduler.aspx&quot; target=&quot;_blank&quot;&gt;Telerik RadScheduler&lt;/a&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-unkv0zyt610/T7KZOImu0kI/AAAAAAAAAho/4yylQ69G9FQ/s1600/01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-unkv0zyt610/T7KZOImu0kI/AAAAAAAAAho/4yylQ69G9FQ/s1600/01.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Cheers!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: #e2e2e2; border: 4px solid #000000; color: blue; margin: auto; padding: 10px; text-align: center; width: 300px;&quot;&gt;&lt;b&gt;If you found this article helpful, please spare a couple dollars for starving bloggers.  :)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;DTVXAQVSA3EWN&quot; /&gt;&lt;input alt=&quot;PayPal - The safer, easier way to pay online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/en_US/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;&lt;/form&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.jwc3.net/2012/05/adding-custom-link-to-telerik.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-adF-4vAu9C4/T6KOYeqE-8I/AAAAAAAAAck/Dn2hztnZFxc/s72-c/ux_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-1487425618468878245</guid><pubDate>Tue, 15 May 2012 04:00:00 +0000</pubDate><atom:updated>2012-05-15T00:00:07.770-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">CSS</category><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><category domain="http://www.blogger.com/atom/ns#">UI</category><category domain="http://www.blogger.com/atom/ns#">UX</category><title>Why UX People Rule with an Iron Fist!</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-zK2QdVMuxj8/T6KOhuJS14I/AAAAAAAAAcs/a_stopxIaGY/s1600/ux_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-zK2QdVMuxj8/T6KOhuJS14I/AAAAAAAAAcs/a_stopxIaGY/s1600/ux_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;I&#39;ve been called several names on several projects, mostly good, but people that know me know that I usually will be overbearing and stop just short of micro-managing the interface and user experience of the project.&amp;nbsp; Well, first, that&#39;s what I&#39;m good for (that was a &quot;duh&quot; moment).&amp;nbsp; Secondly, us in the UX arena usually are the first line of defense for a project.&amp;nbsp; So, you should be thanking me for being such an @$$hole.&amp;nbsp; :)&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Why UX People Take Heat&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Great UX People have been molded into their personalities from experience.&amp;nbsp; Sure, there are great designers and developers out there, and some that are good at the gambit of them, but most fall into strict design-only in UI, or middle-tier with &quot;almost-good enough&quot; skills at the UI.&amp;nbsp; The UX guy gets the job of marrying the UI and the functionality kingdom of the middle-tier.&amp;nbsp; See the UI guy is happy once the client has signed off on the design (and is usually out the door at that moment), the middle-tier guy usually will hide behind the project manager if something is functionally &quot;off&quot;, and well the UX guy gets the job of taking the heat for all of it because it doesn&#39;t matter if something is wrong with the design, or a web service blows up the beautiful feed you have in a dynamic JavaScript section on the front page.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Crazy?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;If you are a UX person, you already know the answer to this question:&amp;nbsp; Do you have to be crazy or a little psychotic to be a great UX developer?&amp;nbsp;&amp;nbsp;&amp;nbsp; My answer and my answer is: Yes &amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;UX Helpline&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;So, you want to help out a UX developer?&amp;nbsp; If you are the UI designer, talk to the UX developer before your meetings with the client just to make sure your design is remotely even possible.&amp;nbsp; :)&amp;nbsp; If you are the middle-tier developer, talk to the UX developer just to make sure that most of your theories of how the front-end works are crap and you need their help.&amp;nbsp; :)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Can I be a UX Developer?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Yes, but like any martial art, you need to earn and prove yourself along the way.&amp;nbsp; For instance, I&#39;m not nearly the best when it comes to practicing and learning new UX techniques.&amp;nbsp; Everyone is constantly learning, and even things you do 10,000 times, you could learn a new technique on the 10,001 time. &amp;nbsp; I would recommend getting very comfortable in JavaScript, a back-bone client-side language.&amp;nbsp; From there, you can branch off into jQuery, jQuery UI, MooTools, YUI Tools, etc.&amp;nbsp; Also, you need to know CSS and design along with JavaScript as if it was your twin.&amp;nbsp; You need to be able to whiteboard your ideas on-the-fly and design in your head on how things will work in a web application. &lt;br /&gt;&lt;br /&gt;The writings above are my opinion, of course, and I don&#39;t really dislike my team at all.&amp;nbsp; I&#39;m just the narcissistic UX guy. &lt;br /&gt;&lt;br /&gt;Cheers!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: #e2e2e2; border: 4px solid #000000; color: blue; margin: auto; padding: 10px; text-align: center; width: 300px;&quot;&gt;&lt;b&gt;If you found this article helpful, please spare a couple dollars for starving bloggers.  :)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;DTVXAQVSA3EWN&quot; /&gt;&lt;input alt=&quot;PayPal - The safer, easier way to pay online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/en_US/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;&lt;/form&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.jwc3.net/2012/05/why-ux-people-rule-with-iron-fist.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-zK2QdVMuxj8/T6KOhuJS14I/AAAAAAAAAcs/a_stopxIaGY/s72-c/ux_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-985811138371903586</guid><pubDate>Mon, 14 May 2012 13:03:00 +0000</pubDate><atom:updated>2012-05-14T09:03:06.163-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">SharePoint</category><category domain="http://www.blogger.com/atom/ns#">SharePoint 2010</category><category domain="http://www.blogger.com/atom/ns#">SharePoint Designer</category><title>Change Associated Content Type for SharePoint 2010 Page Layout</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-pHo9kZAQXm8/T6KOAxYONfI/AAAAAAAAAcc/rY4YSkN-ZMI/s1600/sp_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-pHo9kZAQXm8/T6KOAxYONfI/AAAAAAAAAcc/rY4YSkN-ZMI/s1600/sp_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;I have found out over time that my &quot;usual problems&quot; that I run into are very common occurrences, but problems like this one are those that usually happen pretty rarely, and we all forget how to deal with them.&amp;nbsp; :)&amp;nbsp; So, this is a reference for everyone (and myself) of how to quickly update this via the Internet Browser as I know there are many articles how to do that via programming, but what if you can&#39;t deploy a WSP but have SharePoint Designer access?&amp;nbsp; ;)&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;The Issue&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;The issue usually arises when you have a Page Layout (custom one usually) and it&#39;s currently associated to a Content Type like &quot;Welcome Page&quot;.&amp;nbsp; What happens if you want to associate it to another Content Type, like a custom one?&amp;nbsp; Well, you have to re-associate it with the other one.&amp;nbsp; Luckily, it&#39;s not that bad and you don&#39;t need custom programming to pull it off.&amp;nbsp;&amp;nbsp; One thing to note though, changing Content Types means changing fields that the Page Layout uses, so you may loose some functionality if your Page Layout is dependent on certain fields.&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The Solution&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;First, assuming you have Site Administrator or Owner access, go to Site Settings &amp;gt; Master pages and page layouts.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-76B5MwaiwN0/T7EB46VFZvI/AAAAAAAAAhM/Hlsfc8yz4og/s1600/01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-76B5MwaiwN0/T7EB46VFZvI/AAAAAAAAAhM/Hlsfc8yz4og/s1600/01.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Next, find your Page Layout in the list, hover over it and use the alternate menu to select Edit Properties.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-I8oxZlgMVYU/T7ECFFUhl7I/AAAAAAAAAhU/_p2gbvqO5-4/s1600/02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-I8oxZlgMVYU/T7ECFFUhl7I/AAAAAAAAAhU/_p2gbvqO5-4/s1600/02.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Lastly, scroll down a bit to the middle of it, and you can see the area where you can change the Associated Content Type for that Page Layout.&amp;nbsp; :)&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-Xo72iNCWIiQ/T7ECRNl6pfI/AAAAAAAAAhc/oi2oBY1XtDU/s1600/03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;128&quot; src=&quot;http://1.bp.blogspot.com/-Xo72iNCWIiQ/T7ECRNl6pfI/AAAAAAAAAhc/oi2oBY1XtDU/s320/03.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Hopefully that was short enough and to the point.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Cheers!&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: #e2e2e2; border: 4px solid #000000; color: blue; margin: auto; padding: 10px; text-align: center; width: 300px;&quot;&gt;&lt;b&gt;If you found this article helpful, please spare a couple dollars for starving bloggers.  :)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;DTVXAQVSA3EWN&quot; /&gt;&lt;input alt=&quot;PayPal - The safer, easier way to pay online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/en_US/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;&lt;/form&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.jwc3.net/2012/05/change-associated-content-type-for.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-pHo9kZAQXm8/T6KOAxYONfI/AAAAAAAAAcc/rY4YSkN-ZMI/s72-c/sp_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-6313278333996172299</guid><pubDate>Mon, 14 May 2012 01:38:00 +0000</pubDate><atom:updated>2012-05-13T21:38:39.087-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Adobe</category><category domain="http://www.blogger.com/atom/ns#">Fireworks</category><category domain="http://www.blogger.com/atom/ns#">James&#39; Best Practices</category><category domain="http://www.blogger.com/atom/ns#">UI</category><title>Masking Layers with Transparency Gradient in Adobe Fireworks</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-GsdYeMnJOts/T6KXMvwD1yI/AAAAAAAAAc4/mvEIHzW4C1g/s1600/ui_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-GsdYeMnJOts/T6KXMvwD1yI/AAAAAAAAAc4/mvEIHzW4C1g/s1600/ui_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Have you ever wanted to create a custom shape in Fireworks and don&#39;t want to take the time to use the pen tool and make every curve and point (and be frustrated when it&#39;s not &quot;perfect&quot;)?&amp;nbsp; Well, here is a shortcut way (with practice) to get into making that custom stuff even faster.&amp;nbsp; :)&lt;br /&gt;&lt;br /&gt;Also to fan the flames, I&#39;m going to show how to make a fade from transparency to a solid gradient within the mask.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Create the Images&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Create two images to start.&amp;nbsp; Feel free to make them anything you want.&amp;nbsp; &lt;i&gt;&lt;span style=&quot;color: red;&quot;&gt;Note:&amp;nbsp; if you want to use these shapes later, you may want to make a copy of those shapes.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-VPw5-LDZrzE/T7BcKvqZP8I/AAAAAAAAAgg/HuP92_8wztU/s1600/01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;258&quot; src=&quot;http://2.bp.blogspot.com/-VPw5-LDZrzE/T7BcKvqZP8I/AAAAAAAAAgg/HuP92_8wztU/s320/01.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Ghost that Image!&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Select the image on the top, make sure you have a type of gradient selected (I have linear selected), and then click the color square.&amp;nbsp; In the marker on the left side of the gradient, ABOVE the color selection, click that marker and set the opacity to 0.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-wv0uQswpBKI/T7Bd454PgHI/AAAAAAAAAgo/OSjWu44lIAg/s1600/02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://2.bp.blogspot.com/-wv0uQswpBKI/T7Bd454PgHI/AAAAAAAAAgo/OSjWu44lIAg/s320/02.jpg&quot; width=&quot;265&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Mask that B!&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Alright kids, we&#39;re almost home.&amp;nbsp; In order to make the mask, we have to &lt;u&gt;select the images that we want to be part of the mask&lt;/u&gt;.&amp;nbsp; Now, the masking process basically &lt;b&gt;will take the shape of the image that is on top&lt;/b&gt;.&amp;nbsp; So, in my example, it will allow anything within the gradient oval to show up.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-3xWO2Vjbxw0/T7BfDm3WpKI/AAAAAAAAAgw/tNNGzBdj2DU/s1600/03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;257&quot; src=&quot;http://3.bp.blogspot.com/-3xWO2Vjbxw0/T7BfDm3WpKI/AAAAAAAAAgw/tNNGzBdj2DU/s320/03.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Once you have them selected, go to &lt;b&gt;Modify &amp;gt; Mask &amp;gt; Group as Mask&lt;/b&gt;.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-HW_l-UQV2SY/T7BgDCJZu2I/AAAAAAAAAg4/yAAG0MXZjeo/s1600/04.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;306&quot; src=&quot;http://1.bp.blogspot.com/-HW_l-UQV2SY/T7BgDCJZu2I/AAAAAAAAAg4/yAAG0MXZjeo/s320/04.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;And wah-la!&amp;nbsp; You should how have a custom shape like below.&amp;nbsp; :)&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-xQCNpr8snoI/T7BgkQruAKI/AAAAAAAAAhA/JKjcPag3GPQ/s1600/05.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;255&quot; src=&quot;http://1.bp.blogspot.com/-xQCNpr8snoI/T7BgkQruAKI/AAAAAAAAAhA/JKjcPag3GPQ/s320/05.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;James&#39; Thoughts&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;So, as you can see, it&#39;s not a pain to get some custom flair going on in Fireworks.&amp;nbsp; You just need a short and sweet example with no frills.&amp;nbsp; :)&amp;nbsp; Just another example why I use Fireworks for Web Development imaging. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Cheers! &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: #e2e2e2; border: 4px solid #000000; color: blue; margin: auto; padding: 10px; text-align: center; width: 300px;&quot;&gt;&lt;b&gt;If you found this article helpful, please spare a couple dollars for starving bloggers.  :)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;DTVXAQVSA3EWN&quot; /&gt;&lt;input alt=&quot;PayPal - The safer, easier way to pay online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/en_US/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;&lt;/form&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.jwc3.net/2012/05/masking-layers-with-transparency.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-GsdYeMnJOts/T6KXMvwD1yI/AAAAAAAAAc4/mvEIHzW4C1g/s72-c/ui_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-3459092251462227839</guid><pubDate>Sat, 12 May 2012 04:00:00 +0000</pubDate><atom:updated>2012-05-12T00:00:05.933-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><category domain="http://www.blogger.com/atom/ns#">jQuery</category><category domain="http://www.blogger.com/atom/ns#">Metro</category><category domain="http://www.blogger.com/atom/ns#">Reviews</category><category domain="http://www.blogger.com/atom/ns#">UX</category><title>Windows Metro Style JavaScript / jQuery Library</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s1600/javascript_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s1600/javascript_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;I haven&#39;t had a chance to do more than play with this JavaScript library that &lt;a href=&quot;http://drewgreenwell.com/&quot; target=&quot;_blank&quot;&gt;Drew Greenwell&lt;/a&gt; has created that is for a &lt;a href=&quot;http://drewgreenwell.com/projects/metrojs#fiddleAround&quot; target=&quot;_blank&quot;&gt;Windows Metro-style JavaScript library&lt;/a&gt;, but it is pretty amazing what it does.&amp;nbsp; I&#39;m sure it wasn&#39;t just a &quot;sit down for an hour and it&#39;s done&quot; type of project.&amp;nbsp; If you have seen the dashboard on an &lt;a href=&quot;http://xbox.com/&quot; target=&quot;_blank&quot;&gt;XBOX 360&lt;/a&gt;, Windows 8 Preview, or a Windows Phone 7.5, then you have seen the &quot;Metro&quot; interface.&lt;br /&gt;&lt;br /&gt;You will either love it or hate it.&amp;nbsp; I personally love it. I have a Windows Phone that is running the Mango version, and it&#39;s great.&amp;nbsp; I used to have an HTC D2, and I have an iPod Touch, so I know I didn&#39;t want an iPhone because I didn&#39;t like the interface of the Apple OS.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Screens&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-z-HOLQ-Fue4/T60WLQpJHHI/AAAAAAAAAfw/ZcB1ude41R0/s1600/01-screen.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-z-HOLQ-Fue4/T60WLQpJHHI/AAAAAAAAAfw/ZcB1ude41R0/s1600/01-screen.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-F0JscCqsED4/T60WHvVy78I/AAAAAAAAAfo/agvJ2Q51sGY/s1600/02-screen.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-F0JscCqsED4/T60WHvVy78I/AAAAAAAAAfo/agvJ2Q51sGY/s1600/02-screen.jpg&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: blue; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Code Example (borrowed from &lt;a href=&quot;http://drewgreenwell.com/projects/metrojs#fiddleAround&quot; target=&quot;_blank&quot;&gt;this page&lt;/a&gt;)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 13;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;tiles&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;blue&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;live-tile&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;data-stops&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;100%&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;data-speed&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;750&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;data-delay&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;3000&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;span&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;tile-title&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;slide&amp;nbsp;tile&amp;nbsp;(figure&amp;nbsp;2a)&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;img&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;/images/sample/1tw.gif&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;1&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;img&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;/images/sample/2t.gif&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;2&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;red&amp;nbsp;live-tile&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;data-mode&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;flip&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;data-delay&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;4000&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;img&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;/images/sample/3tw.gif&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;3&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;a&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;tile-title&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;flip&amp;nbsp;tile&amp;nbsp;front&amp;nbsp;(figure&amp;nbsp;2b)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;img&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;/images/sample/4tw.gif&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;4&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;a&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;tile-title&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;flip&amp;nbsp;tile&amp;nbsp;back&amp;nbsp;(figure&amp;nbsp;2b)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;mango&amp;nbsp;list-tile&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;span&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;tile-title&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;flip&amp;nbsp;list&amp;nbsp;(figure&amp;nbsp;2c)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;ul&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;flip-list&amp;nbsp;fourTiles&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;data-mode&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;flip-list&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;data-delay&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;3000&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;img&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;/images/sample/1t.gif&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;1&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;img&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;/images/sample/1tw.gif&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;1&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;img&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;/images/sample/2t.gif&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;2&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;img&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;/images/sample/2tw.gif&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;2&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;img&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;/images/sample/3t.gif&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;3&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;img&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;/images/sample/3tw.gif&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;3&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;data-direction&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;horizontal&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;img&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;/images/sample/4t.gif&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;4&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;img&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;/images/sample/4tw.gif&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;4&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;ul&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;green&amp;nbsp;live-tile&amp;nbsp;exclude&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;span&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;tile-title&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;static&amp;nbsp;tile&amp;nbsp;(figure&amp;nbsp;2d)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Static&amp;nbsp;tiles&amp;nbsp;can&amp;nbsp;take&amp;nbsp;advantage&amp;nbsp;of&amp;nbsp;theming&amp;nbsp;too!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: darkgreen;&quot;&gt;//&amp;nbsp;apply&amp;nbsp;regular&amp;nbsp;slide&amp;nbsp;universally&amp;nbsp;unless&amp;nbsp;.exclude&amp;nbsp;class&amp;nbsp;is&amp;nbsp;applied&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: darkgreen;&quot;&gt;//&amp;nbsp;NOTE:&amp;nbsp;The&amp;nbsp;default&amp;nbsp;options&amp;nbsp;for&amp;nbsp;each&amp;nbsp;liveTile&amp;nbsp;are&amp;nbsp;being&amp;nbsp;pulled&amp;nbsp;from&amp;nbsp;the&amp;nbsp;&#39;data-&#39;&amp;nbsp;attributes&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(&lt;span style=&quot;color: maroon;&quot;&gt;&quot;.live-tile,&amp;nbsp;.flip-list&quot;&lt;/span&gt;).not(&lt;span style=&quot;color: maroon;&quot;&gt;&quot;.exclude&quot;&lt;/span&gt;).liveTile();&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; color: blue; text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;James&#39; Thoughts&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Drew has done a very thorough job of bring the Windows Metro style to a JavaScript library.&amp;nbsp; For my project &lt;a href=&quot;http://timegears.com/&quot; target=&quot;_blank&quot;&gt;@TimeGears&lt;/a&gt;, I have started a Metro-style interface with my dashboard for the back-end, however didn&#39;t yet create any of the cool animations as what Drew has put together.&amp;nbsp; So, show Drew some love and go check out &lt;a href=&quot;http://drewgreenwell.com/&quot; target=&quot;_blank&quot;&gt;MetroJS&lt;/a&gt;.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;b&gt;Cheers!&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: #e2e2e2; border: 4px solid #000000; color: blue; margin: auto; padding: 10px; text-align: center; width: 300px;&quot;&gt;&lt;b&gt;If you found this article helpful, please spare a couple dollars for starving bloggers.  :)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;DTVXAQVSA3EWN&quot; /&gt;&lt;input alt=&quot;PayPal - The safer, easier way to pay online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/en_US/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;&lt;/form&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.jwc3.net/2012/05/windows-metro-style-javascript-jquery.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s72-c/javascript_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-5572590790426200569</guid><pubDate>Fri, 11 May 2012 04:00:00 +0000</pubDate><atom:updated>2012-05-11T00:00:01.872-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">James&#39; Best Practices</category><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><category domain="http://www.blogger.com/atom/ns#">jQuery</category><title>Tighten up your Loose JavaScript</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s1600/javascript_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s1600/javascript_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Being a .NET developer as well as a UX developer has me trying techniques between languages like C# .NET and JavaScript.&amp;nbsp; Most of us know (and if you don&#39;t, you do now) that JavaScript is a loosely typed language.&amp;nbsp; In other words, variables are declared without a specific type.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b style=&quot;color: blue;&quot;&gt;Loosely Typed JavaScript Example&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 13;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;x&amp;nbsp;=&amp;nbsp;50;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;y&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;50&quot;&lt;/span&gt;;&lt;br /&gt; &lt;br /&gt;x&amp;nbsp;==&amp;nbsp;y;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: darkgreen;&quot;&gt;//&amp;nbsp;Returns&amp;nbsp;True&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;span style=&quot;color: darkgreen;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;/pre&gt;&lt;div style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;Structured Global Variables&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;One of the things that I figured out over time from dealing with JSON style data from doing many web services calls from AJAX is to use the JSON structure to build my equivalent of a &quot;constant&quot; list of variables in JavaScript.&amp;nbsp; Since JavaScript is loosely typed, there really are no such things as constants, but we can get it closer to that concept with strong-naming variables in a global JS file to help prevent fat-fingering values throughout the web application.&amp;nbsp; I currently do this with our latest web application &lt;a href=&quot;http://timegears.com/&quot; target=&quot;_blank&quot;&gt;@TimeGears&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 13;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;site&amp;nbsp;=&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;calendar:&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;current:&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;day:&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;value:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;Date().currentDay(),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;name:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;Date().currentDayName()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;month:&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;value:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;Date().currentMonth(),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;name:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;Date().currentMonthName()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;year:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;Date().currentYear()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;today:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;Date().currentDate(),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tomorrow:&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;Date().tomorrowDate(),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;weight:&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;min:&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;min&#39;&lt;/span&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mid:&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;mid&#39;&lt;/span&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;max:&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;max&#39;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;global:&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ajax:&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;text:&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;holder:&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;div&amp;nbsp;class=pleasewait&gt;Please&amp;nbsp;Wait...&lt;br /&gt;&lt;br /&gt;&#39;&lt;/div&amp;nbsp;class=pleasewait&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;session:&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;proxypage:&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;/handler.ashx&#39;&lt;/span&gt;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;value:&amp;nbsp;30000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: darkgreen;&quot;&gt;//&amp;nbsp;30&amp;nbsp;seconds&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;};&lt;/pre&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Consolas; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/pre&gt;&lt;div style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;b style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif; font-size: large;&quot;&gt;Example Use&lt;/span&gt; &lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 13;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;html&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;http://www.w3.org/1999/xhtml&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;head&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;http://code.jquery.com/jquery-1.7.min.js&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;js/test.js&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp; $(&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;()&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;#VarList&#39;&lt;/span&gt;).append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Current&amp;nbsp;Day:&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;site.calendar.current.day.value&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Current&amp;nbsp;Day&amp;nbsp;Name:&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;site.calendar.current.day.name&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Current&amp;nbsp;Month:&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;site.calendar.current.month.value&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Current&amp;nbsp;Month&amp;nbsp;Name:&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;site.calendar.current.month.name&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Current&amp;nbsp;Year:&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;site.calendar.current.year&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Today:&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;site.calendar.today&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Tomorrow:&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;site.calendar.tomorrow&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Weight&amp;nbsp;Min:&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;site.calendar.weight.min&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Weight&amp;nbsp;Mid:&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;site.calendar.weight.mid&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Weight&amp;nbsp;Max:&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;site.calendar.weight.max&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Global&amp;nbsp;AJAX&amp;nbsp;Holder&amp;nbsp;Text:&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;site.global.ajax.text.holder&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Global&amp;nbsp;Session&amp;nbsp;Proxy:&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;site.global.session.proxypage&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Global&amp;nbsp;Session&amp;nbsp;TimeOut&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;site.global.session.value&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;li&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;form&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;form1&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;ul&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;VarList&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;ul&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% white; color: blue; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The Result&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;As you can see from the results below that this use of a global JS file can come in handy much like the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;use of classes in .NET for centralization name-spacing, etc.&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;ul id=&quot;VarList&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;li&gt;Current Day: &lt;b&gt;7&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Current Day Name: &lt;b&gt;Monday&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Current Month: &lt;b&gt;4&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Current Month Name:&lt;b&gt; May&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Current Year: &lt;b&gt;2012&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Today: &lt;b&gt;5/7/2012&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Tomorrow: &lt;b&gt;5/8/2012&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Weight Min: &lt;b&gt;min&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Weight Mid: &lt;b&gt;mid&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Weight Max: &lt;b&gt;max&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Global AJAX Holder Text: &lt;div class=&quot;pleasewait&quot;&gt;&lt;span style=&quot;background-color: orange;&quot;&gt;Please Wait.&lt;/span&gt;..&lt;/div&gt;&lt;/li&gt;&lt;li&gt;Global Session Proxy:&lt;b&gt; /handler.ashx&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Global Session TimeOut: &lt;b&gt;30000&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;Cheers!&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;background: none repeat scroll 0% 0% white; color: black; font-family: Consolas; font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: #e2e2e2; border: 4px solid #000000; color: blue; margin: auto; padding: 10px; text-align: center; width: 300px;&quot;&gt;&lt;b&gt;If you found this article helpful, please spare a couple dollars for starving bloggers.  :)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;DTVXAQVSA3EWN&quot; /&gt;&lt;input alt=&quot;PayPal - The safer, easier way to pay online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/en_US/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;&lt;/form&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.jwc3.net/2012/05/tighten-up-your-loose-javascript.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s72-c/javascript_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-2600462366296073936</guid><pubDate>Thu, 10 May 2012 04:00:00 +0000</pubDate><atom:updated>2012-05-10T00:00:00.517-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dev Tools</category><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><category domain="http://www.blogger.com/atom/ns#">SharePoint</category><category domain="http://www.blogger.com/atom/ns#">SharePoint 2013</category><category domain="http://www.blogger.com/atom/ns#">SharePoint Designer</category><category domain="http://www.blogger.com/atom/ns#">UI</category><category domain="http://www.blogger.com/atom/ns#">Visual Studio</category><title>Designing and Developing for SharePoint 2013 (#15)</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-pHo9kZAQXm8/T6KOAxYONfI/AAAAAAAAAcc/rY4YSkN-ZMI/s1600/sp_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-pHo9kZAQXm8/T6KOAxYONfI/AAAAAAAAAcc/rY4YSkN-ZMI/s1600/sp_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;SharePoint 2013 branding, even though it&#39;s been updated, will still more than likely consist of Master Pages, Page Layouts and the usual fixings we&#39;ve come to love (or hate) in SharePoint.&amp;nbsp; Just check out these screen shots that were leaked already:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b style=&quot;color: blue;&quot;&gt;Design:&lt;/b&gt;&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;The main takeaway is that Master Pages, Page Layouts, etc., will still be around regardless of what new &quot;Look and Feel&quot; Redmond comes up with for SharePoint 2013.&amp;nbsp; Below are some images found on the Internet that seem to be circulating.&amp;nbsp; According to some, they were idea mockups of what SharePoint 2013 &quot;could&quot; look like and are not actual screen shots.&amp;nbsp; As a designer myself, I can totally see doing that and others taking it to promote as the real deal.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Awesome &quot;Metro&quot; interface&lt;span style=&quot;color: red;&quot;&gt; (if it&#39;s really going to look like this -- possibly a fake)&lt;/span&gt;:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-T2n8qGSGnYA/T6gj5jpMsfI/AAAAAAAAAfI/Il4qkt5SMGI/s1600/02-sharepoint15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;203&quot; src=&quot;http://4.bp.blogspot.com/-T2n8qGSGnYA/T6gj5jpMsfI/AAAAAAAAAfI/Il4qkt5SMGI/s320/02-sharepoint15.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;Updated &quot;Mango&quot;-style landing page of a new Team Site&lt;/b&gt; &lt;b style=&quot;color: red;&quot;&gt;(if it&#39;s really going to look like this -- possibly a fake)&lt;/b&gt; (much better than a previous versions of the Team Site, especially WSS 3.0!!)&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-e2VRvNcqCbg/T6gczmWlXFI/AAAAAAAAAeY/e4WzA2RmzuU/s1600/01-sharepoint15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;http://4.bp.blogspot.com/-e2VRvNcqCbg/T6gczmWlXFI/AAAAAAAAAeY/e4WzA2RmzuU/s320/01-sharepoint15.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Development:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;The development for SharePoint 2013 looks promising &lt;span style=&quot;color: red;&quot;&gt;&lt;i&gt;(assuming they&#39;re going to be supporting it with Visual Studio 2012)&lt;/i&gt;&lt;/span&gt;.&amp;nbsp; Visual Studio 2012 has more designers and templates than were included in Visual Studio 2010.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Here&#39;s some of the new stuff for VS 2012 (beta):&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Create Lists and Content Types by Using New Designers  &lt;/li&gt;&lt;li&gt;Create Site Columns  &lt;/li&gt;&lt;li&gt;Create Silverlight Web Parts  &lt;/li&gt;&lt;li&gt;Publish SharePoint Solutions to Remote SharePoint Servers  &lt;/li&gt;&lt;li&gt;Test SharePoint Performance by Using Profiling Tools  &lt;/li&gt;&lt;li&gt;Create Sandboxed Visual Web Parts  &lt;/li&gt;&lt;li&gt;Improved Support for Sandboxed Solutions.  &lt;/li&gt;&lt;li&gt;Support for JavaScript Debugging and IntelliSense for JavaScript  &lt;/li&gt;&lt;li&gt;Streamlined SharePoint Project Templates&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;If you would like to read more, go to the source (&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ee330921%28v=vs.110%29.aspx&quot; target=&quot;_blank&quot;&gt;MSDN Article&lt;/a&gt;). &lt;br /&gt;&lt;br /&gt;My take on it is that I think it&#39;s a great step forward in SharePoint development with Visual Studio.&amp;nbsp; I can assume that most, if not all of the same, will be available for SharePoint 2013 development..&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Cheers!&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: #e2e2e2; border: 4px solid #000000; color: blue; margin: auto; padding: 10px; text-align: center; width: 300px;&quot;&gt;&lt;b&gt;If you found this article helpful, please spare a couple dollars for starving bloggers.  :)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;DTVXAQVSA3EWN&quot; /&gt;&lt;input alt=&quot;PayPal - The safer, easier way to pay online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/en_US/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;&lt;/form&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.jwc3.net/2012/05/designing-and-developing-for-sharepoint.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-pHo9kZAQXm8/T6KOAxYONfI/AAAAAAAAAcc/rY4YSkN-ZMI/s72-c/sp_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-6707486274245644800</guid><pubDate>Wed, 09 May 2012 04:00:00 +0000</pubDate><atom:updated>2012-05-09T00:00:06.729-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">James&#39; Best Practices</category><category domain="http://www.blogger.com/atom/ns#">JavaScript</category><category domain="http://www.blogger.com/atom/ns#">jQuery</category><title>Extending JavaScript Prototype for Date Functions: Part Deux</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s1600/javascript_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s1600/javascript_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;In my first post, &lt;a href=&quot;http://www.jwc3.net/2012/05/extending-javascript-prototype-for-date.html&quot; target=&quot;_blank&quot;&gt;Extending JavaScript Prototype for Date Functions&lt;/a&gt;, I introduced adding to the Date type in JavaScript to make life easier for developing in JavaScript for the given project.&amp;nbsp; In this post, I&#39;m giving away some more goodies for everyone around the Date object in JavaScript.&amp;nbsp; Like before, you can drop these nuggets in your primary JS file for your project.&amp;nbsp; Don&#39;t forget to ultimately &lt;a href=&quot;http://www.jwc3.net/2012/04/minify-your-1-talking-css-and.html&quot; target=&quot;_blank&quot;&gt;Minify your $#1+&lt;/a&gt;.&amp;nbsp; :)&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Prototype Methods&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Save the following code off in a JS file.&amp;nbsp; For my example, I saved the file as &quot;&lt;b&gt;test.js&lt;/b&gt;&quot; in the &quot;&lt;b&gt;&lt;/b&gt;.&lt;b&gt;js&lt;/b&gt;&quot; folder, so from the point where my HTML file lives the path will be &quot;&lt;b&gt;js/test.js&lt;/b&gt;&quot; as you can see in the Example section&#39;s code&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 13;&quot;&gt;Date.prototype.addDays&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;(days)&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.setDate(&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.getDate()&amp;nbsp;+&amp;nbsp;days);&lt;br /&gt;};&lt;br /&gt;Date.prototype.subtractDays&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;(days)&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.setDate(&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.getDate()&amp;nbsp;-&amp;nbsp;days);&lt;br /&gt;};&lt;br /&gt;Date.prototype.addMonths&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;(months)&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.setMonth(&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.getMonth()&amp;nbsp;+&amp;nbsp;months);&lt;br /&gt;};&lt;br /&gt;Date.prototype.currentDate&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;()&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;month&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.getMonth()&amp;nbsp;+&amp;nbsp;1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;month&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;/&quot;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.getDate()&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;/&quot;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.getFullYear();&lt;br /&gt;};&lt;br /&gt;Date.prototype.tomorrowDate&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;()&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;month&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.getMonth()&amp;nbsp;+&amp;nbsp;1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;day&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.getDate()&amp;nbsp;+&amp;nbsp;1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;month&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;/&quot;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;day&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;/&quot;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.getFullYear();&lt;br /&gt;};&lt;br /&gt;Date.prototype.currentYear&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;()&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.getFullYear();&lt;br /&gt;};&lt;br /&gt;Date.prototype.currentMonth&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;()&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.getMonth();&lt;br /&gt;};&lt;br /&gt;Date.prototype.MonthName&amp;nbsp;=&amp;nbsp;[&lt;span style=&quot;color: maroon;&quot;&gt;&quot;January&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;February&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;March&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;April&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;May&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;June&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;July&quot;&lt;/span&gt;,&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;August&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;September&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;October&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;Novemmber&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;December&quot;&lt;/span&gt;];&lt;br /&gt;Date.prototype.currentMonthName&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;()&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.MonthName[&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.getMonth()];&lt;br /&gt;};&lt;br /&gt;Date.prototype.currentDay&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;()&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.getDate();&lt;br /&gt;};&lt;br /&gt;Date.prototype.DayName&amp;nbsp;=&amp;nbsp;[&lt;span style=&quot;color: maroon;&quot;&gt;&quot;Sunday&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;Monday&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;Tuesday&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;Wednesday&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;Thursday&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;Friday&quot;&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&lt;br /&gt;&quot;Saturday&quot;&lt;/span&gt;];&lt;br /&gt;Date.prototype.currentDayName&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;()&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.DayName[&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.getDay()];&lt;br /&gt;};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Example Use&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;pre style=&quot;background: white; color: black; font-family: Consolas; font-size: 13;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;html&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;http://www.w3.org/1999/xhtml&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;head&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;span style=&quot;color: maroon;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;http://code.jquery.com/jquery-1.7.min.js&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;js/test.js&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(&lt;span style=&quot;color: blue;&quot;&gt;function&lt;/span&gt;&amp;nbsp;()&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt;&amp;nbsp;theDate&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;&amp;nbsp;Date();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;#VarList&#39;&lt;/span&gt;).append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;.&amp;lt;Current&amp;nbsp;Date&amp;nbsp;(formatted):&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;theDate.currentDate()&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;.&amp;lt;/li&amp;gt;&#39;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;.&amp;lt;li&amp;gt;Tomorrow&amp;nbsp;Date&amp;nbsp;(formatted):&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;theDate.tomorrowDate()&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;.&amp;lt;/li&amp;gt;&#39;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;.&amp;lt;li&amp;gt;Current&amp;nbsp;Year:&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;theDate.currentYear()&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;.&amp;lt;/li&amp;gt;&#39;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;.&amp;lt;li&amp;gt;Current&amp;nbsp;Month:&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;theDate.currentMonth()&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;.&amp;lt;/li&amp;gt;&#39;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;.&amp;lt;li&amp;gt;Current&amp;nbsp;Month&amp;nbsp;Name:&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;theDate.currentMonthName()&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;.&amp;lt;/li&amp;gt;&#39;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;.&amp;lt;li&amp;gt;Current&amp;nbsp;Day:&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;theDate.currentDay()&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;.&amp;lt;/li&amp;gt;&#39;&lt;/span&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.append(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;.&amp;lt;li&amp;gt;Current&amp;nbsp;Day&amp;nbsp;Name:&amp;nbsp;&#39;&lt;/span&gt;&amp;nbsp;+&amp;nbsp;theDate.currentDayName()&amp;nbsp;+&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&#39;.&amp;lt;/li&amp;gt;&#39;&lt;/span&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;form&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;form1&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;server&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;ul&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&quot;VarList&quot;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;ul&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;color: maroon;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;The Result (run on 5/7/2012):&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul id=&quot;DateList&quot;&gt;&lt;li&gt;Current Date (formatted): &lt;b&gt;5/7/2012&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Tomorrow Date (formatted): &lt;b&gt;5/8/2012&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Current Year: &lt;b&gt;2012&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Current Month: &lt;b&gt;4&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Current Month Name: &lt;b&gt;May&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Current Day: &lt;b&gt;7&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Current Day Name: &lt;b&gt;Monday&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Not much to it once you get the hang of it.&amp;nbsp; Like .NET, these type of little additions go a long way to make your UX code more consistent as you have a central place to call JavaScript functions (almost called them methods ;) ).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Cheers!&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: #e2e2e2; border: 4px solid #000000; color: blue; margin: auto; padding: 10px; text-align: center; width: 300px;&quot;&gt;&lt;b&gt;If you found this article helpful, please spare a couple dollars for starving bloggers.  :)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;DTVXAQVSA3EWN&quot; /&gt;&lt;input alt=&quot;PayPal - The safer, easier way to pay online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/en_US/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;&lt;/form&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.jwc3.net/2012/05/extending-javascript-prototype-for-date_09.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-LGgsN0LzdXU/T6KXuEOvuMI/AAAAAAAAAdA/uAdgLlm727I/s72-c/javascript_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-8808720448161916121</guid><pubDate>Tue, 08 May 2012 04:00:00 +0000</pubDate><atom:updated>2012-05-08T10:33:45.676-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Microsoft</category><category domain="http://www.blogger.com/atom/ns#">Office 365</category><category domain="http://www.blogger.com/atom/ns#">SharePoint</category><category domain="http://www.blogger.com/atom/ns#">SharePoint 2001</category><category domain="http://www.blogger.com/atom/ns#">SharePoint 2003</category><category domain="http://www.blogger.com/atom/ns#">SharePoint 2007</category><category domain="http://www.blogger.com/atom/ns#">SharePoint 2010</category><category domain="http://www.blogger.com/atom/ns#">SharePoint 2013</category><category domain="http://www.blogger.com/atom/ns#">UI</category><title>SharePoint 2013 (#15) Branding - First Look (and look back)</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-pHo9kZAQXm8/T6KOAxYONfI/AAAAAAAAAcc/rY4YSkN-ZMI/s1600/sp_icon.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-pHo9kZAQXm8/T6KOAxYONfI/AAAAAAAAAcc/rY4YSkN-ZMI/s1600/sp_icon.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;In my curiosity the other day, I decided to look to see what I could find on the Internet for SharePoint 15 (2013).&amp;nbsp; I was really wanting to see the Look and Feel of it more than anything.&amp;nbsp; Seems like every version that comes out tries to 1 up (or destroy) the previous version (none more so than MOSS 2007 to SP 2010). I&#39;d like to take this opportunity to do a brief look back at the previous versions of SharePoint branding.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;So, here we go.&amp;nbsp; From SharePoint 2001 to 2013.&amp;nbsp; Buckle up.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;SharePoint 2001&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;An oldie but goodie.&amp;nbsp; This gem (sorry only image I could find on the web since I&#39;ve upgraded since then) was a trendsetter.&amp;nbsp; While this was great for internal collaboration (which was still pretty new concept at the time), it wasn&#39;t very pretty.&amp;nbsp; Also, forget about making it public facing.&amp;nbsp; We could thank this version of SharePoint for driving needs for public-facing web applications that are similar in nature like &lt;a href=&quot;http://www.dotnetnuke.com/&quot; target=&quot;_blank&quot;&gt;DotNetNuke&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-zW8zg9T2pKE/T6gf5e7z21I/AAAAAAAAAek/IWisAw1Nhoc/s1600/sp2001.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; src=&quot;http://4.bp.blogspot.com/-zW8zg9T2pKE/T6gf5e7z21I/AAAAAAAAAek/IWisAw1Nhoc/s320/sp2001.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;SharePoint 2003&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Ok, we&#39;re getting better.&amp;nbsp; We&#39;re still light years away from what is expected for a public facing site in terms of branding.&amp;nbsp; I know, it&#39;s a collaboration site, and doesn&#39;t necessarily need to be on the up and up in branding style.&amp;nbsp; Well, I agree to disagree.&amp;nbsp; If users have a not-so-good experience with the application and it looks bad too, they&#39;re going to trash it. &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-lHXTfZe16VU/T6gf8STi5iI/AAAAAAAAAes/cDh1y-hca08/s1600/sp2003.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;224&quot; src=&quot;http://2.bp.blogspot.com/-lHXTfZe16VU/T6gf8STi5iI/AAAAAAAAAes/cDh1y-hca08/s320/sp2003.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;SharePoint 2007 (#12)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Master page?&amp;nbsp; &lt;b&gt;WTF&lt;/b&gt; is that.&amp;nbsp; :)&amp;nbsp; The introduction of the Master Page concept was awesome in SharePoint 2007.&amp;nbsp; Finally, the designers of SharePoint had something to work with that wasn&#39;t a complete hack of the SharePoint system (not saying we still didn&#39;t have to hack the hell out of SharePoint to get it to play nice). &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-ZhfZVOcHa70/T6gf8e21O7I/AAAAAAAAAe0/fWHEBVUyikQ/s1600/sp2007.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;203&quot; src=&quot;http://2.bp.blogspot.com/-ZhfZVOcHa70/T6gf8e21O7I/AAAAAAAAAe0/fWHEBVUyikQ/s320/sp2007.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;SharePoint 2010 (#14)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;Hard to believe at the time of this posting, SharePoint 2010 is 2 years old.&amp;nbsp; When the new branding came out, it was a much needed improvement over 2007, however there were still the things of old we had to work around plus a new Ribbon bar we had to deal with in designing for SharePoint 2010. &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-GLjxdJxJXZU/T6gf845GcxI/AAAAAAAAAe8/TXmEzcaIS8Q/s1600/sp2010.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;266&quot; src=&quot;http://4.bp.blogspot.com/-GLjxdJxJXZU/T6gf845GcxI/AAAAAAAAAe8/TXmEzcaIS8Q/s320/sp2010.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;SharePoint 2013 (#15)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I found this from this guy&#39;s &lt;a href=&quot;http://timursahin.wordpress.com/2012/03/20/sharepoint-2013-sharepointvnext-hakkinda/&quot; target=&quot;_blank&quot;&gt;web post&lt;/a&gt; about it.&amp;nbsp;&amp;nbsp; Like any good car prototype that gets the masses of people to drool over it, if this ends up being what we have to start with I&#39;ll be doing kart wheels down the hallway.&amp;nbsp; Seeing where SharePoint 2001 started and where SharePoint 2013 potentially will be, it&#39;s quite amazing to see the product development.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;Now, the real question is:&amp;nbsp; is the SharePoint Navigation control still generating nested tables on the front end and UL&#39;s on the back end?&amp;nbsp; If you haven&#39;t experienced this fun time, you should. :)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;Update: 5/8/2012 - Apparently the following images are fakes from some time ago according to some Twitter friends.&amp;nbsp; Nonetheless, they are good for talking around the water cooler.&amp;nbsp; :)&lt;/b&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-T2n8qGSGnYA/T6gj5jpMsfI/AAAAAAAAAfI/Il4qkt5SMGI/s1600/02-sharepoint15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;203&quot; src=&quot;http://4.bp.blogspot.com/-T2n8qGSGnYA/T6gj5jpMsfI/AAAAAAAAAfI/Il4qkt5SMGI/s320/02-sharepoint15.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-e2VRvNcqCbg/T6gczmWlXFI/AAAAAAAAAeY/e4WzA2RmzuU/s1600/01-sharepoint15.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;http://4.bp.blogspot.com/-e2VRvNcqCbg/T6gczmWlXFI/AAAAAAAAAeY/e4WzA2RmzuU/s320/01-sharepoint15.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;I&#39;m not surprised that Microsoft is going the route with the branding that we have seen with the XBOX, Windows Phone (Mango +) and Windows 8.&amp;nbsp; The &quot;Metro&quot; style is one they are betting big on and I&#39;m a fan.&amp;nbsp; I know some don&#39;t care for it, but I love when typography is integrated into the design experience of any application as it just seems to be richer than some fancy graphics. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Cheers!&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: #e2e2e2; border: 4px solid #000000; color: blue; margin: auto; padding: 10px; text-align: center; width: 300px;&quot;&gt;&lt;b&gt;If you found this article helpful, please spare a couple dollars for starving bloggers.  :)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;DTVXAQVSA3EWN&quot; /&gt;&lt;input alt=&quot;PayPal - The safer, easier way to pay online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/en_US/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;&lt;/form&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.jwc3.net/2012/05/sharepoint-2013-15-branding-first-look.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-pHo9kZAQXm8/T6KOAxYONfI/AAAAAAAAAcc/rY4YSkN-ZMI/s72-c/sp_icon.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954701964661625078.post-3845014282324686506</guid><pubDate>Mon, 07 May 2012 04:00:00 +0000</pubDate><atom:updated>2012-05-07T00:00:08.127-04:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Adobe</category><category domain="http://www.blogger.com/atom/ns#">Fireworks</category><category domain="http://www.blogger.com/atom/ns#">Graphics</category><category domain="http://www.blogger.com/atom/ns#">Learn</category><category domain="http://www.blogger.com/atom/ns#">UI</category><title>Slicing and Exporting Images from Adobe Fireworks</title><description>I&#39;ve been using Adobe (formally Macromedia) Fireworks for a long time now.  So, recently when I was working with a colleague of mine and forcing him to use Fireworks since it&#39;s more efficient in Web Development (my opinion of course), I didn&#39;t realize how second nature Fireworks commands were to me.  So, I figured I would break this down for folks since it&#39;s not as &quot;second nature&quot; to non-Fireworks users as I was assuming (my bad =)).  This will also be helpful for Adobe Photoshop users wondering WTF Fireworks is doing in their Adobe Master Collection.  LOL  &lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;strong&gt;First Things First:  Create some &quot;things&quot;&lt;/strong&gt;&lt;/span&gt;  &lt;br /&gt;&lt;br /&gt;Open up Adobe Fireworks and create a new PNG image.&amp;nbsp; The size doesn&#39;t really matter for this tutorial.&amp;nbsp; In the image below, I created three rectangle shapes.&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-MoTyPKgCkFs/T6UoIkQ32wI/AAAAAAAAAdU/Q5jWS-tLBbk/s1600/01-Fireworks.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;171&quot; src=&quot;http://3.bp.blogspot.com/-MoTyPKgCkFs/T6UoIkQ32wI/AAAAAAAAAdU/Q5jWS-tLBbk/s320/01-Fireworks.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: blue; font-size: large;&quot;&gt;&lt;strong&gt;Prepare for Export&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Select all the shapes that you want to Export into individual images.&amp;nbsp; Then click &lt;strong&gt;Edit &amp;gt; Insert &amp;gt; Rectangle Slice&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-iwW1BlozPBk/T6UoxkXwqYI/AAAAAAAAAdc/sad157WCNn4/s1600/02-Fireworks.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;171&quot; src=&quot;http://3.bp.blogspot.com/-iwW1BlozPBk/T6UoxkXwqYI/AAAAAAAAAdc/sad157WCNn4/s320/02-Fireworks.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;When Prompted for Individual or Multiple, choose &lt;strong&gt;Multiple&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-6MKlqOUgc2A/T6Up4JkQffI/AAAAAAAAAdk/FqM1zKCC7VA/s1600/03-Fireworks.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;156&quot; src=&quot;http://4.bp.blogspot.com/-6MKlqOUgc2A/T6Up4JkQffI/AAAAAAAAAdk/FqM1zKCC7VA/s320/03-Fireworks.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;New Layers&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The rectangle slices have created new layers that match the size of the object(s) you had selected previously.&amp;nbsp; You can adjust the size of your new web slices just like any other shape in Fireworks.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-qMks7cNaDWs/T6Uye5JPUiI/AAAAAAAAAdw/yyh_5DsjthM/s1600/04-Fireworks.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;262&quot; src=&quot;http://1.bp.blogspot.com/-qMks7cNaDWs/T6Uye5JPUiI/AAAAAAAAAdw/yyh_5DsjthM/s320/04-Fireworks.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;Got Slice?&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;One of the easiest ways to export a newly created slice is to &lt;strong&gt;Right-Click&lt;/strong&gt; the web slice of your choosing, then click &lt;strong&gt;Export Selected Slice&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-DIJhP1N-dlo/T6UzLiqjwnI/AAAAAAAAAd4/1CVGcejJiPE/s1600/05-Fireworks.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;279&quot; src=&quot;http://4.bp.blogspot.com/-DIJhP1N-dlo/T6UzLiqjwnI/AAAAAAAAAd4/1CVGcejJiPE/s320/05-Fireworks.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Then give it a filename.&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-5sgdmkAE-ts/T6Uzje_gvjI/AAAAAAAAAeA/xCPTPdVvAEY/s1600/06-Fireworks.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;246&quot; src=&quot;http://3.bp.blogspot.com/-5sgdmkAE-ts/T6Uzje_gvjI/AAAAAAAAAeA/xCPTPdVvAEY/s320/06-Fireworks.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;The Result&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;If you open up the file you just exported (aka Created), you&#39;ll see it&#39;s exactly what was showing in the web slice you created.&amp;nbsp; Once you get the hang of this, designing and slicing full web layouts to buttons to photos will be super fast.&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-DqaV8uthG64/T6U1iRwj4jI/AAAAAAAAAeI/2OKpwmz162U/s1600/07-Fireworks.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;170&quot; src=&quot;http://2.bp.blogspot.com/-DqaV8uthG64/T6U1iRwj4jI/AAAAAAAAAeI/2OKpwmz162U/s320/07-Fireworks.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Cheers!&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: #e2e2e2; border: 4px solid rgb(0, 0, 0); color: blue; margin: auto; padding: 10px; text-align: center; width: 300px;&quot;&gt;&lt;b&gt;If you found this article helpful, please spare a couple dollars for starving bloggers.  :)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align=&quot;center&quot;&gt;&lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&gt;&lt;input name=&quot;cmd&quot; type=&quot;hidden&quot; value=&quot;_s-xclick&quot; /&gt;&lt;input name=&quot;hosted_button_id&quot; type=&quot;hidden&quot; value=&quot;DTVXAQVSA3EWN&quot; /&gt;&lt;input alt=&quot;PayPal - The safer, easier way to pay online!&quot; border=&quot;0&quot; name=&quot;submit&quot; src=&quot;https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif&quot; type=&quot;image&quot; /&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; height=&quot;1&quot; src=&quot;https://www.paypalobjects.com/en_US/i/scr/pixel.gif&quot; width=&quot;1&quot; /&gt;&lt;/form&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://www.jwc3.net/2012/05/slicing-and-exporting-images-from-adobe.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-MoTyPKgCkFs/T6UoIkQ32wI/AAAAAAAAAdU/Q5jWS-tLBbk/s72-c/01-Fireworks.jpg" height="72" width="72"/><thr:total>0</thr:total></item></channel></rss>