kohe / fontsizer Goto Github PK
View Code? Open in Web Editor NEWjQuery Plugin - flexibly change font-size with cookie
jQuery Plugin - flexibly change font-size with cookie
USAGE: html ---- <link rel="stylesheet" type="text/css" href="fontSizer.css" /> <script type="text/javascript" src="http://www.google.com/jsapi"></script> <script type="text/javascript">google.load("jquery", "1.4.4");</script> <script src="jquery.fontSizer.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){ $('#fontSizer a').fontSizer({cookie:true}); }); </script> <div id="fontSizer"> <p>文字のサイズの変更</p> <div class="fontScaler"> <a href="javascript:void(0)" id="fs_decrease" title="小さくする">-</a> <a href="javascript:void(0)" id="fs_increase" title="大きくする">+</a> <a href="javascript:void(0)" id="fs_reset" title="初期化する">R</a> </div> </div> OPTIONS: target: 'body', // 対象 type: 'em', // 単位( px || em || % ) default_value: 0.8, // 初期値(cssでもtargetに同じ数値を指定した方がキレイ) step: 0.1, // 目盛り(一回押してどれくらい変化するか) max: 5.0, // 最大値 min: 0.1, // 最小値 cookie: false, // cookieを有効にするか expire: 30, // cookieの期限(日) id_increase: 'fs_increase', // 「+」の要素名 id_decrease: 'fs_decrease', // 「-」の要素名 id_reset: 'fs_reset', // 「リセット」の要素名
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.