Template:cssinitial

  • Revision slug: Template:cssinitial
  • Revision title: Template:cssinitial
  • Revision id: 313157
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

<% // Load the whole page (wiki.page does cache the original page var $page = wiki.page("en-US/docs/CSS/CSS_values_syntax"); var $re = new RegExp("(<\\s*code\\s+id\\s*=\\s*"+'"initial-'+$0+'"'+"[^>]*>)", "igm"); //.*<\\s*/\\s*code\\s*\\>)","igm"); var $result = $re.exec($page); if (!$result) $result="error:"+"(<\s*code\s+id\s*=\s*"+'"initial-'+$0+'"'+"[^>]*>)"; %> <%- $result %>

Revision Source

<% 
    // Load the whole page (wiki.page does cache the original page
    var $page = wiki.page("en-US/docs/CSS/CSS_values_syntax"); 
    
    var $re = new RegExp("(<\\s*code\\s+id\\s*=\\s*"+'"initial-'+$0+'"'+"[^>]*>)", "igm");  //.*<\\s*/\\s*code\\s*\\>)","igm");
    var $result = $re.exec($page);
    if (!$result) $result="error:"+"(<\s*code\s+id\s*=\s*"+'"initial-'+$0+'"'+"[^>]*>)";

%>
<%- $result %>
Revert to this revision