A small collection of stylish effects with Scss. See also: 10 hover effects with less: http://codepen.io/caraujo/details/VYOjNM
A Pen by Renan C. araujo on CodePen.
| // Package nanite provides a lightweight, high-performance HTTP router for Go. | |
| // It is designed to be developer-friendly, inspired by Express.js, and optimized | |
| // for speed and efficiency in routing, grouping, middleware handling, and WebSocket support. | |
| package nanite | |
| import ( | |
| "context" | |
| "fmt" | |
| "net" | |
| "net/http" |
| doctype html | |
| html(lang="en") | |
| head | |
| block title | |
| title My Application | |
| meta(name="viewport" content="width=device-width, initial-scale=1") | |
| link(rel='stylesheet' type="text/css" href='/static/assets/stylesheets/application.css') | |
| link(rel='stylesheet' type="text/css" href='https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css') | |
| //- link(rel='stylesheet' type="text/css" href='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css') |
| package gzip | |
| import ( | |
| "compress/gzip" | |
| "io" | |
| "net/http" | |
| "strings" | |
| "github.com/julienschmidt/httprouter" | |
| ) |
| package helpers | |
| import ( | |
| "bytes" | |
| "compress/gzip" | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "os/exec" |
| func GetRoutes() *httprouter.Router { | |
| router := httprouter.New() | |
| application := controllers.Application{} | |
| router.GET("/", application.Index) | |
| fileServer := http.FileServer(http.Dir("public")) | |
| router.GET("/static/*filepath", func(w http.ResponseWriter, r *http.Request, p httprouter.Params) { | |
| w.Header().Set("Vary", "Accept-Encoding") | |
| w.Header().Set("Cache-Control", "public, max-age=7776000") | |
| r.URL.Path = p.ByName("filepath") |
| var sliderIndex = 0; | |
| var $images = $(".slide-group").children(); | |
| function slide(){ | |
| $images.fadeOut(); | |
| $($images[sliderIndex]).slideDown(); | |
| sliderIndex = (sliderIndex<$images.length-1)?sliderIndex+1:0; | |
| } | |
| function validate() { | |
| if (document.getElementById('remember').checked) { |
A small collection of stylish effects with Scss. See also: 10 hover effects with less: http://codepen.io/caraujo/details/VYOjNM
A Pen by Renan C. araujo on CodePen.
Forked from Gentry Rolofson's Pen MAPS Resizing.
A Pen by Gentry Rolofson on CodePen.