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> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.4/vue.min.js"></script> | |
</head> | |
<body> | |
<ul id='Vue'> | |
<li><span is='ellipsis' length='25' text='This should collapse since it has more than 25 characters.'></span></li> | |
<li><span is='ellipsis' length='50' text='This should remain expanded.'></span></li> | |
</ul> | |
<script> |
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-copy-jquery.js | |
/// This makes all links with class .copylink Copy their link to the clipboard, instead of opening the links. It | |
/// attempts to use browser capabilities, but falls back to a popup prompt that can be copied if it fails. | |
/// | |
/// Thanks to these answers on stackoverflow: https://stackoverflow.com/a/6055620/179311 https://stackoverflow.com/a/30810322/179311 | |
/// Created By: Brad Landis <[email protected]> | |
$(".copylink").click(function(e) { | |
e.preventDefault(); | |
var value = $(this)[0].href; |