Changeset 2077305
- Timestamp:
- 04/29/2019 07:28:47 PM (7 years ago)
- Location:
- sticky-back2top-for-genesis/trunk
- Files:
-
- 4 edited
-
js/sb2t-admin.js (modified) (1 diff)
-
readme.txt (modified) (4 diffs)
-
sticky-back2top.php (modified) (1 diff)
-
views/admin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sticky-back2top-for-genesis/trunk/js/sb2t-admin.js
r1474022 r2077305 10 10 } 11 11 12 function showType() { 13 var typeSelect = document.getElementsByName("sb2t_ptype")[0].value; 14 var pointerSelect = document.getElementById("sb2t_pointer"); 15 16 var arrowEnd = Number(6); 17 var loopEnd = Number(10); 18 var otherEnd = Number(13); 19 20 // disable all options 21 for (var i=0; i<pointerSelect.length; i++) { 22 pointerSelect.options[i].hidden = true; 23 } 24 25 //TO DO - Force select of the top option on the new set of select 26 //TO DO - Add transition smoothing animation 27 28 switch (typeSelect) { 29 case "arrows": 30 for(var i=0; i<arrowEnd; i++) { 31 //show arrows only 32 pointerSelect.options[i].hidden = false; 33 } 34 break; 35 case "loops": 36 for(var i=arrowEnd; i<loopEnd; i++) { 37 //show loops only 38 pointerSelect.options[i].hidden = false; 39 } 40 break; 41 case "other": 42 for(var i=loopEnd; i<pointerSelect.length; i++) { 43 //show other options only 44 pointerSelect.options[i].hidden = false; 45 } 46 break; 47 default: 48 for(var i=0; i<pointerSelect.length; i++) { 49 //show everything 50 pointerSelect.options[i].hidden = false; 51 } 52 } 53 } 12 54 13 55 function getPointer(myArrow){ -
sticky-back2top-for-genesis/trunk/readme.txt
r2076462 r2077305 4 4 Donate link: http://paypal.me/43folders 5 5 Tags: Genesis, navigation, buttons, arrow, back to top, sticky, scroll, jquery, scrolling, nav, scroller, smooth, vertical scroll 6 Stable tag: 2.1. 06 Stable tag: 2.1.1 7 7 Requires at least: 3.5 8 8 License: GPLv2 or later … … 50 50 == Frequently Asked Questions == 51 51 52 = Why is the sticky arrow hidden by my widgets or other page content? =52 = Q: Why is the sticky arrow hidden by my widgets or other page content? = 53 53 54 A: the CSS z-index of the sticky arrow is set to 9999, so it should sit on top of everything. If it doesn't, it could be that your widget or other content has a z-index of 9999 also - in that case, set it to 9998 or less.54 A: The CSS z-index of the sticky arrow is set to 9999, so it should sit on top of everything. If it doesn't, it could be that your widget or other content has a z-index of 9999 also - in that case, set it to 9998 or less. 55 55 56 = Does this work if I'm using a Genesis theme? =56 = Q: Does this work if I'm using a Genesis theme? = 57 57 58 58 A: YES! Not only does it work, but the loading of the sticky arrow is specifically optimized for the Genesis hooks and initialization if you are using a Genesis child theme, meaning faster load times. 59 59 60 = I've heard of Genesis before, and it sounds cool - where can I find it? =60 = Q: I've heard of Genesis before, and it sounds cool - where can I find it? = 61 61 62 62 A: If you're interested, you can find out more about Genesis and StudioPress here: http://goo.gl/hE5B7F … … 64 64 You can find it here: http://goo.gl/Qsy1xn 65 65 66 = I don't have time to mess around with stuff like that, can I just hire you to make a nice site for me? =66 = Q: I don't have time to mess around with stuff like that, can I just hire you to make a nice site for me? = 67 67 68 68 A: Of course! You can either email me directly at michael@43folderstech.net or visit my website and portfolio at http://43folderstech.net Thanks! 69 69 70 = I've already got Genesis, don't need to hire you for anything, but I do stil want to show some appreciation for doing this. What do you suggest? =70 = Q: I've already got Genesis, don't need to hire you for anything, but I do stil want to show some appreciation for doing this. What do you suggest? = 71 71 72 72 A: Can I tell you I love you? Not in a romantic or creepy way (OK, if I'm completely honest here maybe a little creepy), but I do. Here's where you can buy me a coffee, or lunch or something: http://paypal.me/43folders … … 79 79 80 80 == CHANGELOG == 81 = 2.1.1 = 82 * FIX: Demo screen on admin pages was not showing circle and empty backgrounds in some cases. 83 * FIX: Corected miner typos and speling erors thruout. 84 81 85 = 2.1.0 = 82 86 * FIX: Updated CSS to force arrow on top of page content -
sticky-back2top-for-genesis/trunk/sticky-back2top.php
r1474022 r2077305 4 4 * Plugin URI: http://43folderstech.net/genesis-back2top 5 5 * Description: Adds a sticky icon to gently return user to the top - all standard themes supported, and optimized for Genesis. 6 * Version: 2.1. 06 * Version: 2.1.1 7 7 * Author: Michael Kastler 8 8 * Author URI: http://43folderstech.net -
sticky-back2top-for-genesis/trunk/views/admin.php
r1474022 r2077305 83 83 84 84 <tr> 85 <th class="sb2table-gen">Pointer Type:</th> 86 <td class="sb2table-gen"> 87 <select name="sb2t_ptype" id="sb2t_ptype" onchange="showType()" > 88 <option value="arrows" <?php if( $sb2t_ptype == 'arrows') echo "selected " ?>> Arrows 89 <option value="loops" <?php if( $sb2t_ptype == 'loops') echo "selected " ?>> Loops 90 <option value="other" <?php if( $sb2t_ptype == 'other') echo "selected " ?> > Other 91 </select> 92 </td> 93 </tr> 94 95 <tr> 85 96 <th class="sb2table-gen">Pointer Shape:</th> 86 97 <td class="sb2table-gen"> 87 <select name="sb2t_pointer" onchange="showArrow()" >98 <select name="sb2t_pointer" id="sb2t_pointer" onchange="showArrow()" > 88 99 <option value="arrow" <?php if( $sb2t_pointer == 'arrow') echo "selected " ?>> Arrow (default) 89 100 <option value="bigarrow" <?php if( $sb2t_pointer == 'bigarrow') echo "selected " ?>> Big Arrow
Note: See TracChangeset
for help on using the changeset viewer.