GithubHelp home page GithubHelp logo

fontsizer's Introduction

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', // 「リセット」の要素名

fontsizer's People

Contributors

kohe avatar

Stargazers

Christopher avatar

Watchers

 avatar

Forkers

c-pohl

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.