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; | |
| public class Program | |
| { | |
| public static void Main() | |
| { | |
| var fun = Enum.Parse(typeof(TestEnum), "B,C").ToString(); | |
| Console.WriteLine($"Result: {fun}"); | |
| } |
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 imgs = document.getElementsByTagName("img"); | |
| for(var i = 0, len = imgs.length; i<len; i++) { | |
| var img = imgs[i]; | |
| var alt = img.getAttribute("alt"); | |
| var src = img.getAttribute("src"); | |
| if(!alt) { | |
| console.warn("Image '" + src + "' has no alt tag!"); |
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
| // Convert a string to XML Node Structure | |
| // Returns null on failure | |
| function textToXML ( text ) { | |
| try { | |
| var xml = null; | |
| if ( window.DOMParser ) { | |
| var parser = new DOMParser(); | |
| xml = parser.parseFromString( text, "text/xml" ); |
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
| <html> | |
| <body> | |
| <div style="position: absolute; top: 50px; left: 50px; width: 70px; height: 70px; background-color: blue"> | |
| <span style="position: relative; top: 10px; left: 10px; color: red;">Hi</span> | |
| </div> | |
| </body> | |
| </html> |
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
| <html> | |
| <head> | |
| <style type="text/css"> | |
| .selectedClass { | |
| background-color: red; | |
| } | |
| #testTable { | |
| cursor: pointer; | |
| } |
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>Custom HTML Video Wrapper</title> | |
| <script> | |
| var undef; | |
| var numTicks = 0; | |
| var msDelay = 250; | |
| var MediaElement = { |