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
| /** | |
| * InviteWindow | |
| */ | |
| YUI().use('node', 'value-change', 'substitute', 'form-overlabels', 'resource', function(Y){ | |
| Y.on('domready', function(){ | |
| var inviteForm = Y.one('#invite').plug(Y.Plugin.FormOverlabels), | |
| inviteFormInput = inviteForm.one('input'), |
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
| /** | |
| * URLInfo Tests | |
| */ | |
| YUI.add('urlinfo-test', function(Y){ | |
| var suite = new Y.Test.Suite('URLInfo - Santize'), | |
| re = /^(?:(https?:)\/\/)?(?:([^:@\s]+:?[^:@\s]+?)@)?([^:\/\s]+(?:\.[^:\/\s]{2,}){1,})(.*)/i; | |
| function buildTestCase (name, allows, rejects) { |
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
| /** | |
| * Sanitize URL — Validate it looks like a URL, then make it less dirty. | |
| * | |
| * Oddnut Software | |
| * Copyright (c) 2010 Eric Ferraiuolo - http://eric.ferraiuolo.name | |
| * MIT License - http://www.opensource.org/licenses/mit-license.php | |
| * | |
| * Examples: | |
| * | |
| * 'Http://WWW.example.com/' » 'http://www.example.com/' |
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
| /** | |
| * Link Tests | |
| */ | |
| YUI.add('ttw-link-test', function(Y){ | |
| var matchSuite = new Y.Test.Suite('Link - Matching'), | |
| sanitizeSuite = new Y.Test.Suite('Link - Sanitize'); | |
| function buildMatchTestCase (name, allows, rejects) { |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>ValueChange Multiple Subscriptions</title> | |
| </head> | |
| <body> | |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Test Page</title> | |
| </head><body> | |
| <input type="hidden" id="task1" value="Node loaded from YQL"> | |
| <ul id="tasks"></ul> |
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
| Y.TabSliderParent = Y.Base.create('tabsliderparent', Y.Widget, [Y.WidgetParent], { | |
| _tabNums : null, | |
| initializer : function() { | |
| //code | |
| this._tabNums = [idnum]; | |
| //code | |
| }); |
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
| SV.push({id : | |
| new Y.ScrollView({ | |
| srcNode: '#' + id, | |
| height: 370 | |
| })} | |
| ); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>TipTheWeb Button Test</title> | |
| </head> | |
| <body> | |
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
| protected void renderYUI3Seed(HtmlContentWriter container) throws IOException { | |
| this.renderYUI3Seed(container, true); | |
| } | |
| protected void renderYUI3Seed(HtmlContentWriter container, boolean includeModuleMetadata) throws IOException { | |
| if (includeModuleMetadata) | |
| this.renderYUI3Seed(container, includeModuleMetadata, isDebug ? YUI3_DEBUG_SEED_WITH_METADATA : YUI3_SEED_WITH_METADATA); | |
| else |