diff --git a/.gitignore b/.gitignore deleted file mode 100644 index a9ddbf0..0000000 --- a/.gitignore +++ /dev/null @@ -1,39 +0,0 @@ -# Compiled source # -################### -*.com -*.class -*.dll -*.exe -*.o -*.so - -# Packages # -############ -# it's better to unpack these files and commit the raw source -# git has its own built in compression methods -*.7z -*.dmg -*.gz -*.iso -*.jar -*.rar -*.tar -*.zip -node_modules - -# Logs and databases # -###################### -*.log -*.sql -*.sqlite - -# OS generated files # -###################### -.DS_Store -.DS_Store? -._* -.Spotlight-V100 -.Trashes -Icon? -ehthumbs.db -Thumbs.db \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js deleted file mode 100644 index b249a5e..0000000 --- a/Gruntfile.js +++ /dev/null @@ -1,39 +0,0 @@ -module.exports = function(grunt) { - - grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), - - // minify all src css/js files in src/ -> dist dir - cssmin: { - minify: { - expand: true, - cwd: 'src/', - src: ['*.css', '!*.min.css'], - dest: 'dist/', - ext: '.min.css' - }, - add_banner : { - options : { - banner : "/* Minified view stylesheet Copyright (c) 2013 @0xAX & @_voidpirate*/" - }, - files: { - 'dist/view.min.css': 'src/css/view.css' - } - } - }, - uglify: { - my_target: { - files: { - "dist/view.min.js": "src/js/view.js" - } - } - } -}); - - grunt.loadNpmTasks('grunt-contrib-cssmin'); - grunt.loadNpmTasks('grunt-contrib-uglify'); - - grunt.registerTask('compileJS', ['uglify']); - grunt.registerTask('compileCSS', ['cssmin']); - -}; \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index 2fcb555..0000000 --- a/README.md +++ /dev/null @@ -1,61 +0,0 @@ -View -============= - -View - is a lightweight HTML5 & JavaScript web presentation plugin. - -Usage -============= - - * Include `css/content.css` and `layout.css` to your html file. - * Include at the end of `body` section `` file. - * Create `div` tag with `class="slide"`. - -Create presentation in your js file: - -```javascript -View(options); -``` - -Where options: - -```javascript -View(options = { - slide_show : true, - slide_show_timeout: 10000 -}); -``` - -Features -============= - - * Lightweight plugin for building web presentations. - * Move slides with up/down key. - * Mouse scrolling of slides - * Slide show with configurable timeout. - * Full screenmode - double click anywhere to toggle on or off. - -TODO -============= - - * Thumbnails list. - * Effects. - * Plugins. - * Progress bar. - -Contribute -============ - - * Fork main View repository (https://github.com/0xAX/view). - * Make your changes in your clone of view. - * Test it. - * Send pull request. - -Contributors -============== - - * Brandon Davis - [@_voidPirate](https://twitter.com/_voidPirate) - -Author -============= - -[@0xAX](https://twitter.com/0xAX). diff --git a/dist/view.min.css b/dist/view.min.css deleted file mode 100644 index 9f1b5cc..0000000 --- a/dist/view.min.css +++ /dev/null @@ -1,2 +0,0 @@ -/* Minified view stylesheet Copyright (c) 2013 @0xAX & @_voidpirate*/ -html,body{height:100%;width:100%;font-size:100%;margin-right:0;margin-left:0;margin-top:0;margin-bottom:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;-webkit-transition:all 600ms ease,opacity 600ms ease;-moz-transition:all 600ms,opacity 600ms ease;-ms-transition:all 600ms ease,opacity 600ms ease;-o-transition:all 600ms ease,opacity 600ms ease;transition:all 600ms ease,opacity 600ms ease}.presentation{width:100%;height:100%;margin-right:0;margin-left:0;margin-top:0;margin-bottom:0;overflow-y:hidden;overflow-x:hidden;z-index:1;text-align:center}.slide{height:100%;width:100%;font-size:100%;padding:7% 0;right:0;text-align:center}.slide:-webkit-full-screen{width:100%;height:100%}.slide:-moz-full-screen{width:100%;height:100%} \ No newline at end of file diff --git a/dist/view.min.js b/dist/view.min.js deleted file mode 100644 index dd26a01..0000000 --- a/dist/view.min.js +++ /dev/null @@ -1 +0,0 @@ -var View=function(a){"use strict";function b(a){var b=a.wheelDelta;return console.log(b),"-11">b?m=n():b>"11"?m=o():void 0}function c(a){switch(a.keyCode){case 40:return m=n();case 38:return m=o()}}function d(){document.mozFullScreen||document.webkitIsFullScreen?document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():document.documentElement.requestFullScreen?document.documentElement.requestFullScreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullScreen&&document.documentElement.webkitRequestFullScreen()}function e(){m=n()}function f(a){setInterval(e,a)}function g(a){a.slide_show===!0&&a.slide_show_timeout>0&&f(a.slide_show_timeout)}for(var h,i=document.querySelectorAll(".slide"),j=[],k=0;h=i[k];++k)j.push(h);addEventListener("dblclick",d,!1);var l=j.length,m=j[0];document.addEventListener("keydown",c,!1),document.addEventListener("mousewheel",b,!1),document.addEventListener("DOMMouseScroll",b,!1);var n=function(){var a=j.indexOf(m);return a===l-1?j[a]:(j[a+1].scrollIntoView(!0),j[a+1])},o=function(){var a=j.indexOf(m);return 0===a?j[a]:(j[a-1].scrollIntoView(!0),j[a-1])};g(a)};View(options={slide_show:!0,slide_show_timeout:1e4}); \ No newline at end of file diff --git a/index.html b/index.html index 6c2ea2f..ceaf5f0 100644 --- a/index.html +++ b/index.html @@ -1,67 +1,66 @@ - +
- - -view.js - lightweight javascript presentation framework
+ + + + + +This automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here using GitHub Flavored Markdown, select a template crafted by a designer, and publish. After your page is generated, you can check out the new branch:
+ +$ cd your_repo_root/repo_name
+$ git fetch origin
+$ git checkout gh-pages
+
+
+If you're using the GitHub for Mac, simply sync your repository and you'll see the new branch.
+ +We've crafted some handsome templates for you to use. Go ahead and continue to layouts to browse through them. You can easily go back to edit your page before publishing. After publishing your page, you can revisit the page generator and switch to another theme. Your Page content will be preserved if it remained markdown format.
+ +If you prefer to not use the automatic generator, push a branch named gh-pages to your repository to create a page manually. In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog aware static site generator written by our own Tom Preston-Werner. Jekyll makes it easy to create site-wide headers and footers without having to copy them across every page. It also offers intelligent blog support and other advanced templating features.
You can @mention a GitHub username to generate a link to their profile. The resulting <a> element will link to the contributor's GitHub Profile. For example: In 2007, Chris Wanstrath (@defunkt), PJ Hyett (@pjhyett), and Tom Preston-Werner (@mojombo) founded GitHub.
Having trouble with Pages? Check out the documentation at http://help.github.com/pages or contact support@github.com and we’ll help you sort it out.
+