[Pkg-javascript-commits] [highlight.js] 02/05: New upstream version 9.11.0+dfsg1

Ximin Luo infinity0 at debian.org
Tue May 16 13:29:45 UTC 2017


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository highlight.js.

commit 02c5ca8b08914b14a7d46ed3c3737d4c757f33e8
Author: Ximin Luo <infinity0 at debian.org>
Date:   Tue May 16 15:21:50 2017 +0200

    New upstream version 9.11.0+dfsg1
---
 demo/demo.js                   | 119 -----------------------------------------
 demo/index.html                |  54 -------------------
 demo/jquery-2.1.1.min.js       |   4 --
 demo/perfect-scrollbar.min.css |   5 --
 demo/perfect-scrollbar.min.js  |   4 --
 demo/style.css                 |  74 -------------------------
 6 files changed, 260 deletions(-)

diff --git a/demo/demo.js b/demo/demo.js
deleted file mode 100644
index 3516cb0..0000000
--- a/demo/demo.js
+++ /dev/null
@@ -1,119 +0,0 @@
-(function() {
-  'use strict';
-
-  var $window            = $(window),
-      $languages         = $('#languages div'),
-      $linkTitle         = $('link[title]'),
-      $categoryContainer = $('#categories'),
-      $styleContainer    = $('#styles');
-
-  function resizeLists() {
-    var screenHeight = $window.height()
-
-    $categoryContainer.css('max-height', screenHeight / 4);
-    $categoryContainer.perfectScrollbar('update');
-    $styleContainer.height(
-      screenHeight - $styleContainer.position().top - 20
-    );
-    $styleContainer.perfectScrollbar('update');
-  }
-
-  function selectCategory(category) {
-    $languages.each(function(i, language) {
-      var $language = $(language);
-
-      if ($language.hasClass(category)) {
-        var code = $language.find('code');
-
-        if (!code.hasClass('hljs')) {
-          hljs.highlightBlock(code.get(0));
-        }
-
-        $language.show();
-      } else {
-        $language.hide();
-      }
-    });
-
-    $(document).scrollTop(0);
-  }
-
-  function categoryKey(c) {
-    return c === 'common' ? '' : c === 'misc' ? 'z' : c === 'all' ? 'zz' : c;
-  }
-
-  function initCategories() {
-    var $categories, categoryNames;
-    var categories = {};
-
-    $languages.each(function(i, div) {
-      if (!div.className) {
-        div.className += 'misc';
-      }
-      div.className += ' all';
-      div.className.split(' ').forEach(function(c) {
-        categories[c] = (categories[c] || 0) + 1;
-      });
-    });
-
-    categoryNames = Object.keys(categories);
-
-    categoryNames.sort(function(a, b) {
-      a = categoryKey(a);
-      b = categoryKey(b);
-      return a < b ? -1 : a > b ? 1 : 0;
-    });
-
-    categoryNames.forEach(function(c) {
-      $categoryContainer.append(
-        '<li data-category="' + c + '">' + c + ' (' + categories[c] +')</li>'
-      );
-    });
-
-    $categories = $categoryContainer.find('li');
-
-    $categories.click(function() {
-      var $category = $(this);
-
-      $categories.removeClass('current');
-      $category.addClass('current');
-      selectCategory($category.data('category'));
-    });
-
-    $categories.first().click();
-    $categoryContainer.perfectScrollbar();
-  }
-
-  function selectStyle(style) {
-    $linkTitle.each(function(i, link) {
-      link.disabled = (link.title !== style);
-    });
-  }
-
-  function initStyles() {
-    var $styles;
-
-    $linkTitle.each(function(i, link) {
-      $styleContainer.append('<li>' + link.title + '</li>');
-    });
-
-    $styles = $styleContainer.find('li');
-
-    $styles.click(function() {
-      var $style = $(this);
-
-      $styles.removeClass('current');
-      $style.addClass('current');
-      selectStyle($style.text());
-    });
-    $styles.first().click();
-    $styleContainer.perfectScrollbar();
-  }
-
-  $(function() {
-    initCategories();
-    initStyles();
-    $window.resize(resizeLists);
-    resizeLists();
-  });
-}).call(this);
diff --git a/demo/index.html b/demo/index.html
deleted file mode 100644
index 6d1da8d..0000000
--- a/demo/index.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-  <meta charset="utf-8">
-  <title>highlight.js demo</title>
-  <link rel="stylesheet" href="style.css">
-  <link rel="stylesheet" href="perfect-scrollbar.min.css">
-
-  <link rel="stylesheet" title="Default" href="styles/default.css">
-  <% _.each(styles, function(style) { %>
-  <link rel="alternate stylesheet" title="<%= style.name %>" href="<%= style.path %>">
-  <% }); %>
-</head>
-<body>
-  <div id="sidebar">
-
-    <div id="header">
-      <h1><a href="https://highlightjs.org/">highlight.js</a> demo</h1>
-    </div>
-
-    <div id="lists">
-      <div>
-        <h2>Language categories</h2>
-        <ul id="categories"></ul>
-      </div>
-
-      <div>
-        <h2>Styles</h2>
-        <ul id="styles"></ul>
-      </div>
-    </div>
-
-  </div>
-
-  <div id="content">
-
-  <div id="languages">
-    <% _.each(blobs, function(blob) { %>
-    <% var categories = blob.fileInfo.Category; %>
-    <div <% if(categories) { %>class="<%= categories.join(' ') %>"<% } %>>
-      <h2><%- blob.fileInfo.Language %></h2>
-      <pre><code class="<%- path.basename(blob.name, '.js') %>"><%- blob.result %></code></pre>
-    </div>
-    <% }); %>
-  </div>
-
-  </div>
-
-  <script src="../highlight.pack.js"></script>
-  <script src="jquery-2.1.1.min.js"></script>
-  <script src="perfect-scrollbar.min.js"></script>
-  <script src="demo.js"></script>
-</body>
-</html>
diff --git a/demo/jquery-2.1.1.min.js b/demo/jquery-2.1.1.min.js
deleted file mode 100644
index e5ace11..0000000
--- a/demo/jquery-2.1.1.min.js
+++ /dev/null
@@ -1,4 +0,0 @@
-/*! jQuery v2.1.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
-!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.1",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r= [...]
-},_data:function(a,b,c){return L.access(a,b,c)},_removeData:function(a,b){L.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=M.get(f),1===f.nodeType&&!L.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));L.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){M.set(this,a)}):J(this,function(b){var c,d=n.camelCase(a); [...]
-},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),Zb={set:function(a,b,c){return b===!1?n.removeAttr(a,c):a.setAttribute(c,c),c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=$b[b]||n.find.attr;$ [...]
diff --git a/demo/perfect-scrollbar.min.css b/demo/perfect-scrollbar.min.css
deleted file mode 100644
index fc452af..0000000
--- a/demo/perfect-scrollbar.min.css
+++ /dev/null
@@ -1,5 +0,0 @@
-/*! perfect-scrollbar - v0.5.7
-* http://noraesae.github.com/perfect-scrollbar/
-* Copyright (c) 2014 Hyunje Alex Jun; Licensed MIT */
-
-.ps-container.ps-active-x>.ps-scrollbar-x-rail,.ps-container.ps-active-y>.ps-scrollbar-y-rail{display:block}.ps-container>.ps-scrollbar-x-rail{display:none;position:absolute;-webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;border-radius:4px;opacity:0;-ms-filter:"alpha(Opacity=0)";filter:alpha(opacity=0);-webkit-transition:background-color .2s linear,opacity .2s linear;-moz-transition:background-color .2s linear,opacity .2s linear;-o-transition:background-color .2s l [...]
\ No newline at end of file
diff --git a/demo/perfect-scrollbar.min.js b/demo/perfect-scrollbar.min.js
deleted file mode 100644
index ff3f5ac..0000000
--- a/demo/perfect-scrollbar.min.js
+++ /dev/null
@@ -1,4 +0,0 @@
-/*! perfect-scrollbar - v0.5.7
-* http://noraesae.github.com/perfect-scrollbar/
-* Copyright (c) 2014 Hyunje Alex Jun; Licensed MIT */
-(function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)})(function(e){"use strict";function t(e){return"string"==typeof e?parseInt(e,10):~~e}var o={wheelSpeed:1,wheelPropagation:!1,minScrollbarLength:null,maxScrollbarLength:null,useBothWheelAxes:!1,useKeyboard:!0,suppressScrollX:!1,suppressScrollY:!1,scrollXMarginOffset:0,scrollYMarginOffset:0,includePadding:!1},n=0,r=function(){var e=n++;return function [...]
\ No newline at end of file
diff --git a/demo/style.css b/demo/style.css
deleted file mode 100644
index 6fa8231..0000000
--- a/demo/style.css
+++ /dev/null
@@ -1,74 +0,0 @@
-/* Base styles */
-body {
-  color: #F0F0F0;
-  background: #500;
-  font-family: Arial, sans;
-  margin: 0; padding: 0;
-}
-
-a {
-  color: white;
-}
-
-h1 {
-  font: bold 150% Arial, sans-serif;
-  margin: 0; padding: 1em 0;
-}
-
-h2 {
-  font: bold 120% Arial, sans-serif;
-  margin: 1.5em 0 0.5em 0;
-}
-
-pre {
-  margin: 0;
-  font-size: medium;
-}
-
-#sidebar {
-  float: left; width: 16em; height: 1000em; position: fixed;
-  padding: 1px 1em;
-  background: #600;
-  box-shadow: 0 0 15px black;
-}
-
-#sidebar ul,
-#sidebar li {
-  list-style: none;
-  margin: 0; padding: 0;
-}
-
-#sidebar ul {
-  position: relative;
-  overflow-y: hidden;
-}
-
-#sidebar li {
-  padding: 1px 1em;
-  cursor: pointer;
-}
-
-#sidebar li:hover {
-  background: #500;
-}
-
-#sidebar li.current:before {
-  content: '▶'; font-size: smaller;
-  position: absolute; left: 0;
-}
-
-#content {
-  margin-left: 19em;
-}
-
-#languages {
-  padding: 1px 4em;
-}
-
-#languages div {
-  display: none;
-}
-
-#languages div {
-  margin: 3em 0;
-}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/highlight.js.git



More information about the Pkg-javascript-commits mailing list