From 8edcfa89e2307d1d41d07f9c411045cf83815f7e Mon Sep 17 00:00:00 2001 From: Oleg Krivtsov Date: Wed, 11 Jul 2018 11:49:02 +0600 Subject: [PATCH] A small change in theme --- data/bottom_ad.js | 47 -------------- data/popup.js | 127 ++++++++++++++++++++++++++++++++++++++ manuscript/en/preface.txt | 4 +- manuscript/ru/preface.txt | 2 +- openbook.json | 6 +- 5 files changed, 135 insertions(+), 51 deletions(-) create mode 100644 data/popup.js diff --git a/data/bottom_ad.js b/data/bottom_ad.js index b9f1f3c3..6bbadcd3 100644 --- a/data/bottom_ad.js +++ b/data/bottom_ad.js @@ -8,50 +8,3 @@ - - -$(function() { - - var popupDiv = ` -
-

Contact

-

Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper.

-
-`; - - $('body').append(popupDiv); - - animateSlider(this.hash); - - function animateSlider(hash) { - if (!$('#container div.open').length) { - if (hash == '#about') { - openPopup(hash); - } - if (hash == '#contact') { - openPopup(hash); - } - } else { - if (hash == '#about') { - openAndClose(hash) - } - if (hash == '#contact') { - openAndClose(hash) - } - } - } - - function openPopup(hash) { - $(hash + '_popup').slideToggle().addClass('open'); - } - - function openAndClose(hash) { - if ($(hash + '_popup').hasClass('open')) { - $($(hash + '_popup')).slideToggle().removeClass(); - } else { - $('#container div.open').slideToggle().removeClass(); - $(hash + '_popup').slideToggle().addClass('open'); - } - } - -}); \ No newline at end of file diff --git a/data/popup.js b/data/popup.js new file mode 100644 index 00000000..d66cf287 --- /dev/null +++ b/data/popup.js @@ -0,0 +1,127 @@ + \ No newline at end of file diff --git a/manuscript/en/preface.txt b/manuscript/en/preface.txt index 0da40b80..2ef638dd 100644 --- a/manuscript/en/preface.txt +++ b/manuscript/en/preface.txt @@ -80,8 +80,8 @@ located under every page. Alternatively, you can contact the author through his ## About the Author -Oleg Krivtsov is a C++ and PHP developer. He has been developing sofware professionally -since 2005. Oleg is a Certified Zend Framework Architect ([proof](http://www.zend.com/en/yellow-pages/ZEND030290)) +Oleg Krivtsov is a C++ and PHP developer. He has been developing software professionally +since 2005. Oleg is a Certified Zend Framework 2 Architect and a Certified MySQL Developer. He likes contributing to open-source and writing programming articles for popular web resources, like CodeProject. This writing passion has also inspired him to create this book about Zend Framework 3. Oleg also loves skiing and watching Formula 1. diff --git a/manuscript/ru/preface.txt b/manuscript/ru/preface.txt index 5760f07a..29179e7f 100644 --- a/manuscript/ru/preface.txt +++ b/manuscript/ru/preface.txt @@ -80,7 +80,7 @@ using-zf3-book-samples ## Об авторе Олег Кривцов - разработчик программ на языках C++ и PHP. Он разрабатывает ПО профессионально -с 2005. Олег является сертифицированным Zend Framework Architect ([ссылка](http://www.zend.com/en/yellow-pages/ZEND030290)) +с 2005. Олег является сертифицированным Zend Framework Architect и сертифицированным MySQL Developer. Он любит вносить вклад в ПО с открытым исходным кодом и писать статьи для популярных веб-ресурсов, таких как CodeProject. Олег также любит кататься на лыжах и смотреть Formula 1. diff --git a/openbook.json b/openbook.json index b8a8ae68..79f7f277 100644 --- a/openbook.json +++ b/openbook.json @@ -25,6 +25,7 @@ "es": "Español" }, "incomplete_translations": ["es"], + "theme" : "default", "google_analytics": { "enabled": true, "account_id": "UA-80824388-1" @@ -42,5 +43,8 @@ "api_reference": { "enabled": true, "class_index_url": "https://olegkrivtsov.github.io/zf3-api-reference/html/class-index.json" - } + }, + "chapter_js_scripts" : [ + "data/popup.js" + ] }