Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

faster ES6 .repeat using n |= 0; #2

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Contributing to OpenSpritz

Please develop from the _dev_ branch, not the master branch!

Please check for existing tickets before you open a new one. Please don't submit pull requests before opening a ticket
and discussing.

Because of the way that OpenSpritz is deployed, all pull requests must be sent to the _dev_ branch rather than the
_master_ branch. Please also test your changes on a variety of sites, including CNN, the New York Times and The
Guardian.

Also please add yourself to the Contributors list in the README, if you're so inclined!
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,33 @@ Please be sure to submit your pull requests to the _dev_ branch, rather than _ma
version depends on accessing the raw resources from Github master, all changes must be reviewed for functionality and
security testing before they can be merged directly. Thank you!

### Changelog

* 1.1
* Remove jQuery
* Replace Readability with Diffbot
* Add Play/Pause button

* 1.0
* Public release!

### Contributors

* [Rich Jones](https://github.com/Miserlou)
* [Nick R](https://github.com/niroyb)
* [Eli White](https://github.com/TheSavior)
* [Tim B](https://github.com/Barbarrosa)

## Sister Projects

* [OpenSpritz-Android](https://github.com/OnlyInAmerica/OpenSpritz-Android) - An Android Spritz ePub Reader by [@OnlyInAmerica](https://github.com/OnlyInAmerica)
* [OpenSpritz-Android](https://github.com/OnlyInAmerica/OpenSpritz-Android) - An Android Spritz ePub Reader by [@OnlyInAmerica](https://github.com/OnlyInAmerica). Also works with Google Glass!
* [SpritzerTextView](https://github.com/andrewgiang/SpritzerTextView) - An Android Spritz View by [@andrewgiang](https://github.com/andrewgiang)
* [speedread](https://github.com/pasky/speedread) - A terminal Spritzer. by [@pasky](https://github.com/pasky)
* [jetzt](https://github.com/ds300/jetzt) - jetzt, a Spritz Chrome extension by [@ds300](https://github.com/ds300)
* [spread0r](https://github.com/xypiie/spread0r) (previously _gritz_) - A Spritz implementation in Perl by [@xypiee](https://github.com/xypiie/)
* [Spray](https://github.com/chaimpeck/spray) - A Spritzifying website built with OpenSpritz, PHP and Bootstrap. By [@chaimpeck](https://github.com/chaimpeck/)
* [Speed-ReaderFF](https://github.com/jbmartinez/speed-readerff) - A Firefox exension of OpenSpritz. By [@jbmartinez](https://github.com/jbmartinez/)
* [spritz-it!](https://github.com/the-happy-hippo/spritz-it) - A Spritzer designed for mobile browsers. By [@the-happy-hippo](https://github.com/the-happy-hippo/)

#### A Note About the Name

Expand Down
4 changes: 3 additions & 1 deletion index.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
font-style:normal;
height:38px;
line-height:38px;
width:125px;
width: auto;
padding-left: 6px;
padding-right: 6px;
text-decoration:none;
text-align:center;
}
Expand Down
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ <h2>George Orwell, 12 January 1946</h2>
<a />
</div>

<div class='button'>
<a href="javascript:(function(){ cb = function(){ create_spritz(); }; var script=document.createElement('SCRIPT');script.src='https://rawgithub.com/Miserlou/OpenSpritz/dev/spritz.js?callback=cb'; script.onload=cb; document.body.appendChild(script);})();">
OpenSpritz this! (Remote Dev)
<a />
</div>

<div class='button'>
<a href="javascript:(function(){ cb = function(){ create_spritz(); }; var script=document.createElement('SCRIPT');script.src='spritz.js?callback=cb'; script.onload=cb; document.body.appendChild(script);})();">
OpenSpritz this! (Local)
<a />
</div>

<br /><br />

<div id="spritz_me">
Expand Down
19 changes: 3 additions & 16 deletions spritz.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@
<option value="950">950wpm</option>
</select>

<button type="button" id="spritz_toggle">Pause</button>

<span id="spritz_credits">
<a href="http://github.com/Miserlou/OpenSpritz">
<i>OpenSpritz</i>
<i>OpenSpritz 1.1</i>
</a>
<a href="" onclick="hide_spritz(); return false;">
<i>[x]</i>
Expand All @@ -48,18 +50,3 @@

<div id="spritz_spacer">
</div>

<script type='text/javascript'>
$( document ).ready(function() {

$('#spritz_selector').on('change', function (e) {

clearTimeouts();
var optionSelected = $("option:selected", this);
var valueSelected = this.value;
var input = $('#spritz_me').text();
var rez = spritz();

});
});
</script>
Loading