Skip to content
Permalink
Browse files

Hanami home page

  • Loading branch information...
jodosha committed Jan 14, 2016
1 parent 2d44e80 commit d899bb901041422f705742e2fbcb674a275d0f4e
Showing with 1,459 additions and 4,036 deletions.
  1. BIN source/fonts/bootstrap/glyphicons-halflings-regular.eot
  2. +0 −288 source/fonts/bootstrap/glyphicons-halflings-regular.svg
  3. BIN source/fonts/bootstrap/glyphicons-halflings-regular.ttf
  4. BIN source/fonts/bootstrap/glyphicons-halflings-regular.woff
  5. BIN source/fonts/bootstrap/glyphicons-halflings-regular.woff2
  6. BIN source/fonts/icomoon.eot
  7. +0 −12 source/fonts/icomoon.svg
  8. BIN source/fonts/icomoon.ttf
  9. BIN source/fonts/icomoon.woff
  10. BIN source/fonts/toolkit-entypo.eot
  11. BIN source/fonts/toolkit-entypo.ttf
  12. BIN source/fonts/toolkit-entypo.woff
  13. BIN source/fonts/toolkit-entypo.woff2
  14. BIN source/images/code-example.png
  15. BIN source/images/cover.jpg
  16. +0 −11 source/images/down-circle.svg
  17. BIN source/images/features.png
  18. BIN source/images/home-background.jpg
  19. BIN source/images/lotus-dark.png
  20. BIN source/images/lotus-dark@2x.png
  21. BIN source/images/lotus-light-large.png
  22. BIN source/images/lotus-light-large@2x.png
  23. BIN source/images/lotus-light.png
  24. BIN source/images/lotus-light@2x.png
  25. +0 −31 source/images/lotus-logo.svg
  26. BIN source/images/sample-photo.jpg
  27. BIN source/images/terminal.png
  28. BIN source/images/tsunami_dark@2x.png
  29. BIN source/images/tsunami_light.png
  30. +1 −1 source/index.html.erb
  31. +88 −3 source/javascripts/application.js
  32. +0 −12 source/javascripts/bootstrap-sprockets.js
  33. +0 −7 source/javascripts/bootstrap.min.js
  34. +0 −162 source/javascripts/bootstrap/affix.js
  35. +0 −94 source/javascripts/bootstrap/alert.js
  36. +0 −116 source/javascripts/bootstrap/button.js
  37. +0 −237 source/javascripts/bootstrap/carousel.js
  38. +0 −211 source/javascripts/bootstrap/collapse.js
  39. +0 −161 source/javascripts/bootstrap/dropdown.js
  40. +0 −324 source/javascripts/bootstrap/modal.js
  41. +0 −113 source/javascripts/bootstrap/popover.js
  42. +0 −175 source/javascripts/bootstrap/scrollspy.js
  43. +0 −153 source/javascripts/bootstrap/tab.js
  44. +0 −472 source/javascripts/bootstrap/tooltip.js
  45. +0 −59 source/javascripts/bootstrap/transition.js
  46. +4 −0 source/javascripts/jquery.min.js
  47. +0 −128 source/javascripts/main.js
  48. +0 −777 source/javascripts/plugins.js
  49. +1,069 −284 source/javascripts/{bootstrap.js → toolkit.js}
  50. +0 −5 source/javascripts/vendor/jquery-1.11.2.min.js
  51. +0 −4 source/javascripts/vendor/modernizr-2.8.3.min.js
  52. +178 −196 source/layouts/home.erb
  53. +117 −0 source/stylesheets/application-minimal.css
  54. +2 −0 source/stylesheets/toolkit-minimal.css
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,3 @@
---
title: Lotus - A complete web framework for Ruby
title: Hanami - The web, with simplicity
---
@@ -1,3 +1,88 @@
//= require bootstrap
//= require plugins
//= require main
// back to top button - docs
$(function () {
if ($('.docs-top').length) {
_backToTopButton()
$(window).on('scroll', _backToTopButton)
function _backToTopButton () {
if ($(window).scrollTop() > $(window).height()) {
$('.docs-top').fadeIn()
} else {
$('.docs-top').fadeOut()
}
}
}

// doc nav js
var $toc = $('#markdown-toc')
var $window = $(window)

if ($toc[0]) {

maybeActivateDocNavigation()
$window.on('resize', maybeActivateDocNavigation)

function maybeActivateDocNavigation () {
if ($window.width() > 768) {
activateDocNavigation()
} else {
deactivateDocNavigation()
}
}

function deactivateDocNavigation() {
$window.off('resize.theme.nav')
$window.off('scroll.theme.nav')
$toc.css({
position: '',
left: '',
top: ''
})
}

function activateDocNavigation() {

var cache = {}

function updateCache() {
cache.containerTop = $('.docs-content').offset().top
cache.containerRight = $('.docs-content').offset().left + $('.docs-content').width() + 40
measure()
}

function measure() {
var scrollTop = $window.scrollTop()
var distance = Math.max(scrollTop - cache.containerTop, 0)

if (!distance) {
$($toc.find('li')[1]).addClass('active')
return $toc.css({
position: '',
left: '',
top: ''
})
}

$toc.css({
position: 'fixed',
left: cache.containerRight,
top: 0
})
}

updateCache()

$(window)
.on('resize.theme.nav', updateCache)
.on('scroll.theme.nav', measure)

$('body').scrollspy({
target: '#markdown-toc',
selector: '#markdown-toc li > a'
})

setTimeout(function () {
$('body').scrollspy('refresh')
}, 1000)
}
}
})

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit d899bb9

Please sign in to comment.
You can’t perform that action at this time.