player/js/metadataplayer-core.js
changeset 32 06d7faebcb8d
parent 18 b8a45e2fd6fd
child 87 017f45c5209f
equal deleted inserted replaced
31:8239b6d8417f 32:06d7faebcb8d
    25  *	knowledge of the CeCILL-C license and that you accept its terms.
    25  *	knowledge of the CeCILL-C license and that you accept its terms.
    26 */
    26 */
    27 /* Initialization of the namespace */
    27 /* Initialization of the namespace */
    28 
    28 
    29 if (typeof window.IriSP === "undefined") {
    29 if (typeof window.IriSP === "undefined") {
    30     window.IriSP = {};
    30     window.IriSP = {
       
    31         VERSION: "0.3.1"
       
    32     };
    31 }
    33 }
    32 
    34 
    33 if (typeof IriSP.jQuery === "undefined" && typeof window.jQuery !== "undefined" && parseFloat(window.jQuery().jquery) >= 1.7) {
    35 if (typeof IriSP.jQuery === "undefined" && typeof window.jQuery !== "undefined" && parseFloat(window.jQuery().jquery) >= 1.7) {
    34     IriSP.jQuery = window.jQuery;
    36     IriSP.jQuery = window.jQuery;
    35 }
    37 }
    94     
    96     
    95     if (_regexp) {
    97     if (_regexp) {
    96         addToList(_regexp, '<span class="Ldt-Highlight">', '</span>');
    98         addToList(_regexp, '<span class="Ldt-Highlight">', '</span>');
    97     }
    99     }
    98     
   100     
    99     addToList(/(https?:\/\/)?\w+\.\w+\S+/gm, function(matches) {
   101     addToList(/(https?:\/\/)?[\w\d\-]+\.[\w\d\-]+\S+/gm, function(matches) {
   100         return '<a href="' + (matches[1] ? '' : 'http://') + matches[0] + '" target="_blank">'
   102         return '<a href="' + (matches[1] ? '' : 'http://') + matches[0] + '" target="_blank">'
   101     }, '</a>');
   103     }, '</a>');
   102     addToList(/@([\d\w]{1,15})/gm, function(matches) {
   104     addToList(/@([\d\w]{1,15})/gm, function(matches) {
   103         return '<a href="http://twitter.com/' + matches[1] + '" target="_blank">'
   105         return '<a href="http://twitter.com/' + matches[1] + '" target="_blank">'
   104     }, '</a>');
   106     }, '</a>');