This file contains 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
IN.$extensions('createStylePatch', function() { | |
Sslac.definitionOf("IN.Objects.Base").Method("createStyle", function(pairs) { | |
var ua = navigator.userAgent, | |
out = [], | |
value = "", | |
cssBrowserSupport = ((/Webkit|KHTML\//i).test(ua)) ? "Webkit" : | |
((/Gecko\/([^\s]*)/i).test(ua)) ? "Gecko" : | |
((/MSIE\s([^;]*)/).test(ua)) ? "MSIE" : | |
(window.opera) ? "Opera" : "other"; | |
This file contains 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
<script type="text/javascript"> | |
function onLinkedInAuth() { | |
IN.API | |
.Profile("me") | |
.result( function(me) { | |
alert("User has authenticated. Member ID: " + me.values[0].id); | |
}); | |
} | |
</script> | |
<body> |
This file contains 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
<style type="text/css"> | |
*{font-family:Inconsolata, arial, serif;} | |
#content div{border:1px solid gray;-webkit-border-radius:15px;-moz-border-radius:15px;-o-border-radius:15px;height:15px;width:800px;cursor:pointer;margin:5px;padding:5px 15px 10px 40px;} | |
.test-case{background:url(./resources/ok.png) no-repeat left top;-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-o-transition:opacity 1s;background-color:#AFA;opacity:0.6;} | |
.test-case:hover{-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-o-transition:opacity 1s;opacity:1;background-color:#AFA;} | |
div.fail:hover{-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-o-transition:opacity 1s;opacity:1;} | |
div.fail{background:url(./resources/error.png) no-repeat left top;-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-o-transition:opacity 1s;opacity:0.6;background-color:#FAA;} | |
#connect-url,#connect-key{width:700px;font-size:20px;} | |
#load-connect-framework{font-size:25px;cursor:pointer;} | |
#title,#menu{padding:10px 20px;} |
This file contains 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
<h2>Testing Character Encoding</h2> | |
<h3>This profile uses the rich text editor</h3> | |
<p><script type="IN/FullMemberProfile" data-id="OqbPFlcDV1" data-firstName="Carole" data-lastName="Bouquet"></script></p> | |
<h3>This profile uses plain text input</h3> | |
<p><script type="IN/FullMemberProfile" data-id="Xu9e7PgP9l" data-firstName="FIRSTA" data-lastName="LAST0"></script></p> | |
<h3>These are the attack vectors tested</h3> | |
<div style="border:1px solid; padding:10px;"> |
NewerOlder