This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using Umbraco.Core; | |
namespace Meh.App_Code | |
{ | |
public class ChangeMenu : ApplicationEventHandler | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Request.ApplicationPath : /virtual_dir | |
Request.CurrentExecutionFilePath : /virtual_dir/webapp/page.aspx | |
Request.FilePath : /virtual_dir/webapp/page.aspx | |
Request.Path : /virtual_dir/webapp/page.aspx | |
Request.PhysicalApplicationPath : d:\Inetpub\wwwroot\virtual_dir\ | |
Request.QueryString : /virtual_dir/webapp/page.aspx?q=qvalue | |
Request.Url.AbsolutePath : /virtual_dir/webapp/page.aspx | |
Request.Url.AbsoluteUri : http://localhost:2000/virtual_dir/webapp/page.aspx?q=qvalue | |
Request.Url.Host : localhost | |
Request.Url.Authority : localhost:80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rewrite> | |
<rules> | |
<rule name="Redirect till www.domain.se" enabled="true" stopProcessing="true"> | |
<match url="(.*)" /> | |
<conditions> | |
<add input="{HTTP_HOST}" pattern="^www\.domain\.se$" negate="true" /> | |
</conditions> | |
<action type="Redirect" url="http://www.domain.se/{R:1}" /> | |
</rule> | |
</rules> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: http://jsfiddle.net/hMEHB/15/ | |
$(document).ready(function () { | |
'use strict'; | |
var descenders = {"g": true, "j": true, "p": true, "q": true, "y": true}; | |
$('a').each(function (i, elem) { | |
var self = $(elem), | |
textNodes = self.text().split(''), | |
i = 0; | |
for (i = 0; i < textNodes.length; i += 1) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var $__append__ = $.fn.append; | |
var matcher = '*'; | |
$.fn.append = function () { | |
if (console && this.selector === matcher) console.log.call(console, { el: this, args: Array.prototype.slice.call(arguments) }); | |
$__append__.apply(this, arguments); | |
}; | |
}()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin ie6 { * html & { @content } } | |
#logo { | |
background-image: url("/images/logo.png"); | |
@include ie6 { background-image: url("/images/logo.gif"); } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// COLOR ****************************************************/ | |
$bordercolor: #888; | |
$activecolor: #D61518; | |
$aqua:#00FFFF; | |
$bisque:#ffe4c4; | |
$black:#000000; | |
$blue:#0000FF; | |
$brown:#A52A2A; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MIXINS | |
// | |
// SHADOWS | |
@mixin box-shadow ($string) { | |
-webkit-box-shadow: $string; | |
-moz-box-shadow: $string; | |
box-shadow: $string; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
font-size: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin box-shadow($top, $left, $blur, $color, $inset: false) { | |
@if $inset { | |
-webkit-box-shadow:inset $top $left $blur $color; | |
-moz-box-shadow:inset $top $left $blur $color; | |
box-shadow:inset $top $left $blur $color; | |
} @else { | |
-webkit-box-shadow: $top $left $blur $color; | |
-moz-box-shadow: $top $left $blur $color; | |
box-shadow: $top $left $blur $color; | |
} |
NewerOlder