Giter Site home page Giter Site logo

jslock's Introduction

jslock - JavaScript page locker

Как установить?

Просто вставьте в любое место вашей страницы этот скрипт

<script src="//lockjs.googlecode.com/git/lock.min.js"></script>

Так же вы можете разместить баннер в шапке сайта как на habrahabr.ru Выглядит так: http://habrahabr.ru/post/185554/

Код (сразу после тега <body>):

<a style="background: #ffff18 url(http://habrahabr.ru/images/banners/begeek_2.gif) no-repeat center center;display:block;height:90px;box-shadow:0 1px 2px #ccc;" href="http://ad.adriver.ru/cgi-bin/click.cgi?sid=1&amp;ad=410696&amp;bt=21&amp;bid=2696012&amp;bn=2696012&amp;rnd=1251482300">
</a>

В случае, если вы хотите внести изменения в текст обращения, изменить время блокировки, адрес сайта, или сделать любое другое изменение в скрипте, используйте глобальный объект LK_SETTINGS:

<script type="text/javascript">
  window.LK_SETTINGS = {
    time: 5 // Время блокировки кнопки "Продолжить работу"
  };
</script>

или возьмите этот скрипт, внесите изменения и загрузите на свой сайт.

Живой пример

Подробнее о проекте

Зеркало репозитория

Разработка

$ git clone [email protected]:imShara/jslock.git
$ cd jslock
$ npm i

Для пересборки файла lock.min.js используйте скрипт minify.js.

jslock's People

Contributors

arvur avatar azproduction avatar ergoz avatar imshara avatar kafeman avatar megatolya avatar noway avatar sbkarr avatar semisonic avatar subzey avatar wersoo avatar

Watchers

 avatar  avatar

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.