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
| { | |
| "console log": { | |
| "prefix": "log", | |
| "body": [ | |
| "console.log( '$1', $2 );" | |
| ], | |
| "description": "Log output to console" | |
| }, | |
| "react functional component": { | |
| "prefix": "react", |
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
| { | |
| "Jasmine it() descriptor": { | |
| "prefix": "it" | |
| , "body": [ | |
| "it( 'should ${1:do something testable}', () => {" | |
| , " ${2:// Do something}" | |
| , "});$0" | |
| ], | |
| "description": "Describes a Jasmine test for a feature using it()" | |
| }, |
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
| // This one should show a message | |
| window.MC.lib.appDeeplink( { | |
| appName: 'Campaigns' // Application Name | |
| , target: 'fullscreen' | |
| , link: '/Campaigns?id=NDQ1OjQ2OjA%3D' | |
| , options: { | |
| interactionName: 'My Interaction Name' | |
| , returnAppName: 'Journey Builder' | |
| } | |
| } ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var init = function() { | |
| /* $( "input[name=a1]" ).change(function() { | |
| $("#b1").val(0); | |
| $("#c1").val(0); | |
| sumItUp(); | |
| }); | |
| $( "input[name=b1]" ).change(function() { | |
| $("#a1").val(0); | |
| $("#c1").val(0); |
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
| $( document ).ready(function() { | |
| getFormJson(run_after); | |
| }); | |
| var $ar4ec = $("#ar4ec").validate({ | |
| // Rules for form validation | |
| rules : { | |
| exemption : { | |
| required : true | |
| }, |
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
| $( '.smart-form input, .smart-form input[disabled], .smart-form textarea, .smart-form select' ).each( function() { | |
| var name = $( this ).attr( 'name' ); | |
| if ( jsonData && jsonData[ name ] ) { | |
| $( this ).val( jsonData[ name ] ); | |
| } | |
| } ); |