Skip to content

Commit

Permalink
Item14483: added missing js and css files
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Sep 18, 2017
1 parent 714d376 commit 60649fd
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 12 deletions.
13 changes: 7 additions & 6 deletions data/System/MaterialIcons.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="ProjectContributor" comment="reprev" date="1467033305" format="1.1" reprev="1" version="1"}%
%META:TOPICINFO{author="ProjectContributor" comment="" date="1505723207" format="1.1" version="1"}%
%META:TOPICPARENT{name="WebFontsContrib"}%
---+!! %TOPIC%
%ADDTOZONE{"head" id="MATERIAL::CSS" text="<link rel='stylesheet' href='%PUBURLPATH%/%SYSTEMWEB%/WebFontsContrib/material-icons/font-face.css' media='all'>"}%
Expand All @@ -12,17 +12,18 @@
text-decoration:none;
white-space:nowrap;
overflow:hidden;
float:left;
display:inline-block;
}
.entry:hover {
text-decoration:none;
}
.entry i {
text-align:right;
vertical-align:middle;
-webkit-transition: font-size 100ms;
transition: font-size 100ms;
-webkit-transition: font-size 250ms;
transition: font-size 250ms;
margin:0 14px 0 5px;
line-height:30px;
}
.entry:hover i {
font-size:28px;
Expand Down Expand Up @@ -1003,8 +1004,8 @@ jQuery(function($) {
<a class='entry'><i class='ma ma-zoom-out-map'></i> zoom-out-map</a>
</div>

%META:FILEATTACHMENT{name="style.css" attachment="style.css" attr="" comment="Generated by <nop>AttachContentPlugin" date="1467033099" path="style.css" size="369" user="micha" version="13"}%
%META:FILEATTACHMENT{name="script.js" attachment="script.js" attr="" comment="Generated by <nop>AttachContentPlugin" date="1466875844" path="script.js" size="1035" user="micha" version="18"}%
%META:FILEATTACHMENT{name="style.css" attachment="style.css" attr="" comment="Generated by <nop>AttachContentPlugin" date="1505723207" path="style.css" size="399" user="ProjectContributor" version="1"}%
%META:FILEATTACHMENT{name="script.js" attachment="script.js" attr="" comment="Generated by <nop>AttachContentPlugin" date="1505723207" path="script.js" size="1035" user="ProjectContributor" version="1"}%
%META:TOPICMOVED{by="micha" date="1467033228" from="Sandbox.MaterialIconsTest" to="System.MaterialIcons"}%
%META:PREFERENCE{name="DISPLAYATTACHMENTS" title="DISPLAYATTACHMENTS" type="Local" value="off"}%
%META:PREFERENCE{name="NOWYSIWYG" title="NOWYSIWYG" type="Local" value="on"}%
Expand Down
5 changes: 3 additions & 2 deletions data/System/WebFontsContrib.txt
@@ -1,4 +1,4 @@
%META:TOPICINFO{author="micha" comment="" date="1466579931" format="1.1" version="2"}%
%META:TOPICINFO{author="ProjectContributor" comment="" date="1505723207" format="1.1" version="1"}%
---+!! %TOPIC%
%FORMFIELD{"Description"}%

Expand Down Expand Up @@ -46,6 +46,7 @@ Note that copyrights apply to each font individually.
---++ Change History

%TABLE{columnwidths="7em" tablewidth="100%"}%
| 18 Sep 2017 | added missing css and js |
| 30 Nov 2016 | added material icons |
| 01 Mar 2016 | initial release |
| 16 Sep 2015 | creation |
Expand All @@ -56,7 +57,7 @@ Note that copyrights apply to each font individually.
%META:FIELD{name="Release" title="Release" value="%25$RELEASE%25"}%
%META:FIELD{name="Description" title="Description" value="%25$SHORTDESCRIPTION%25"}%
%META:FIELD{name="Repository" title="Repository" value="https://github.com/foswiki/%25$ROOTMODULE%25"}%
%META:FIELD{name="Copyright" title="Copyright" value="2016 Michael Daum http://michaeldaumconsulting.com"}%
%META:FIELD{name="Copyright" title="Copyright" value="2015-2017 Michael Daum http://michaeldaumconsulting.com"}%
%META:FIELD{name="License" title="License" value="GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]])"}%
%META:FIELD{name="Home" title="Home" value="https://foswiki.org/Extensions/%25$ROOTMODULE%25"}%
%META:FIELD{name="Support" title="Support" value="https://foswiki.org/Support/%25$ROOTMODULE%25"}%
6 changes: 3 additions & 3 deletions lib/Foswiki/Contrib/WebFontsContrib.pm
@@ -1,6 +1,6 @@
# Extension for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# WebFontsContrib is Copyright (C) 2015-2016 Michael Daum http://michaeldaumconsulting.com
# WebFontsContrib is Copyright (C) 2015-2017 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand All @@ -20,8 +20,8 @@ use warnings;

use Foswiki::Func ();

our $VERSION = '2.00';
our $RELEASE = '30 Nov 2016';
our $VERSION = '2.01';
our $RELEASE = '18 Sep 2017';
our $SHORTDESCRIPTION = 'Web fonts for Foswiki skins';
our $NO_PREFS_IN_TOPIC = 1;

Expand Down
3 changes: 3 additions & 0 deletions lib/Foswiki/Contrib/WebFontsContrib/MANIFEST
@@ -1,7 +1,10 @@
!noci
data/System/MaterialIcons.txt 0644
data/System/WebFontsContrib.txt 0644
lib/Foswiki/Contrib/WebFontsContrib/DEPENDENCIES 0644
lib/Foswiki/Contrib/WebFontsContrib.pm 0644
pub/System/MaterialIcons/script.js 0644
pub/System/MaterialIcons/style.css 0644
pub/System/WebFontsContrib/droid-sans/DroidSans-Bold-demo.html 0644
pub/System/WebFontsContrib/droid-sans/DroidSans-Bold-webfont.eot 0644
pub/System/WebFontsContrib/droid-sans/DroidSans-Bold-webfont.svg 0644
Expand Down
35 changes: 35 additions & 0 deletions pub/System/MaterialIcons/script.js
@@ -0,0 +1,35 @@
"use strict";
jQuery(function($) {
var timer;
function filterOverview(val) {
var regex = new RegExp(val, "i"),
$overview = $(".overview");
console.log("filterOverview(",val,")");
if (val != '') {
$overview.find(".entry").hide().each(function() {
var $this = $(this);
if (regex.test($this.text())) {
$this.show();
}
});
} else {
$overview.find(".entry").show();
}
}
$(".filterIcons:not(.filterIconsInited").livequery(function() {
var $input = $(this);
$input.addClass("filterIconsInited");
$input.keyup(function() {
if (typeof(timer) !== 'undefined') {
//console.log("clearing timeout");
window.clearTimeout(timer);
}
timer = window.setTimeout(function() {
var val = $input.val();
filterOverview(val);
timer = undefined;
}, 100);
//console.log("new timer",timer);
});
});
});
23 changes: 23 additions & 0 deletions pub/System/MaterialIcons/style.css
@@ -0,0 +1,23 @@
.entry {
width:18em;
line-height:30px;
color:inherit;
text-decoration:none;
white-space:nowrap;
overflow:hidden;
display:inline-block;
}
.entry:hover {
text-decoration:none;
}
.entry i {
text-align:right;
vertical-align:middle;
-webkit-transition: font-size 250ms;
transition: font-size 250ms;
margin:0 14px 0 5px;
line-height:30px;
}
.entry:hover i {
font-size:28px;
}
Expand Up @@ -12,7 +12,7 @@

/* italic */
@font-face {
font-family: 'droid_serifitalic';
font-family: 'Droid Serif';
src: url('DroidSerif-Italic-webfont.eot');
src: url('DroidSerif-Italic-webfont.eot?#iefix') format('embedded-opentype'),
url('DroidSerif-Italic-webfont.woff') format('woff'),
Expand Down

0 comments on commit 60649fd

Please sign in to comment.