This article walks you through how to get the ID of any YouTube video.
You may be watching the video or just happened to visit a link to a video. The video ID will be located in the URL of the video page, right after the v= URL parameter.
This article walks you through how to get the ID of any YouTube video.
You may be watching the video or just happened to visit a link to a video. The video ID will be located in the URL of the video page, right after the v= URL parameter.
A drop-in replacement for the default CMS admin toolbar with a simple vertical design, tested with jQuery 1.8.3. Uses HTML5
localStorageso this setting will persist as long as you do not clear your site/browser data.
In the example below, set different font size based on length of affiliate name
- If name contains 1-20 characters, set font size to 20px
- If name contains 21-30 characters, set font size to 18px
- If name contains 31-40 characters, set font size to 16px
- Otherwise, name must contain more than 40 characters, so set font size to 14px
<span style="font-size: [[?x1x2x3x4x5x6x7x8x9x10x11x12x13x14x15x16x17x18x19x20x::x[[E130: "[[S80:site_name]]" length]]x::20::[[?x21x22x23x24x25x26x27x28x29x30x::x[[E130: "[[S80:site_name]]" length]]x::18::[[?x31x32x33x34x35x36x37x38x39x40x::x[[E130: "[[S80:site_name]]" length]]x::16::14]]]]]]px;">[[S80:site_name]]</span>
| <t:if test="length > 0"><!-- is there a list? --> | |
| <t:set id="iRandom" value="random(length)+1" /><!-- set a variable equal to a number between 1 and the length of the list --> | |
| <!-- if random number is within 2 of the last item in the list, subtract 2 --> | |
| <t:if test="iRandom >= (length-2) && iRandom <= length"> | |
| <t:set id="iRandom" value="iRandom-2" /> | |
| </t:if> | |
| <!-- if the variable is now negative due to the subtraction above, reset it to 1 (the first list item) --> | |
| <t:if test="iRandom <= 0"> |
| <!-- Copyright 2010 Convio, Inc. --> | |
| <!-- | |
| Conditional for detecting mobile devices | |
| [[?xx::x[[S80:isMobile]]x:: | |
| isMobile is not yet set | |
| [[?xx::x[[S80:UserAgentLowerCase]]x:: | |
| UserAgentLowerCase is not yet set | |
| Convert User-Agent from HTTP request header to lower case | |
| [[U0:UserAgentLowerCase=[[E130:"[[S50:User-Agent]]" "A" "a" replaceall "B" "b" replaceall "C" "c" replaceall "D" "d" replaceall "E" "e" replaceall "F" "f" replaceall "G" "g" replaceall "H" "h" replaceall "I" "i" replaceall "J" "j" replaceall "K" "k" replaceall "L" "l" replaceall "M" "m" replaceall "N" "n" replaceall "O" "o" replaceall "P" "p" replaceall "Q" "q" replaceall "R" "r" replaceall "S" "s" replaceall "T" "t" replaceall "U" "u" replaceall "V" "v" replaceall "W" "w" replaceall "X" "x" replaceall "Y" "y" replaceall "Z" "z" replaceall]]]] |
| // See Tablesorter @ http://tablesorter.com/docs/ | |
| $(document).ready(function() { | |
| $("#sort_table").tablesorter( {sortList: [[0,0], [1,0]]} ); | |
| }); |