My static website generator using poole https://www.xythobuz.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

yoxview.top_menu.js 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. $.yoxview.yoxviewSkins["top_menu"] = {
  2. infoButtons: function(options, lang, sprites, yoxviewPanel, yoxviewContent){
  3. var $ = jQuery;
  4. //prev/next buttons:
  5. if (!options.skinOptions || options.skinOptions.renderButtons !== false)
  6. {
  7. var prevBtn = $("<a>", {
  8. className: "yoxview_ctlButton yoxview_prevBtn",
  9. title: lang.PrevImage,
  10. href: "#"
  11. });
  12. prevBtn.click(function(e){
  13. $.yoxview.prev();
  14. return false;
  15. });
  16. var nextBtn = $("<a>", {
  17. className: "yoxview_ctlButton yoxview_nextBtn",
  18. title: lang.NextImage,
  19. href: "#"
  20. });
  21. nextBtn.click(function(e){
  22. $.yoxview.next();
  23. return false;
  24. });
  25. yoxviewPanel.append(prevBtn, nextBtn);
  26. }
  27. // menu buttons:
  28. var closeBtn = $("<a>", {
  29. href: "#",
  30. title: lang.Close,
  31. click: function(e){
  32. e.preventDefault();
  33. $.yoxview.close();
  34. }
  35. });
  36. closeBtn.append(sprites.getSprite("icons", "close"));
  37. var playBtn = $("<a>", {
  38. href: "#",
  39. title: lang.Play,
  40. click: function(e){
  41. e.preventDefault();
  42. $.yoxview.play();
  43. }
  44. });
  45. playBtn.append(sprites.getSprite("icons", "play"));
  46. var rightBtn = $("<a>", {
  47. href: "#",
  48. title: options.isRTL ? lang.PrevImage : lang.NextImage,
  49. click: function(e){
  50. e.preventDefault();
  51. if (options.isRTL)
  52. $.yoxview.prev();
  53. else
  54. $.yoxview.next();
  55. }
  56. });
  57. rightBtn.append(sprites.getSprite("icons", "right"));
  58. var leftBtn = $("<a>", {
  59. href: "#",
  60. title: options.isRTL ? lang.NextImage : lang.PrevImage,
  61. click: function(e){
  62. e.preventDefault();
  63. if (options.isRTL)
  64. $.yoxview.next();
  65. else
  66. $.yoxview.prev();
  67. }
  68. });
  69. leftBtn.append(sprites.getSprite("icons", "left"));
  70. //yoxviewContent.delegate("div.yoxview_imgPanel", "click.yoxviewZoom", $.yoxview.zoom);
  71. return {
  72. close: closeBtn,
  73. playBtn: playBtn,
  74. right: rightBtn,
  75. left: leftBtn
  76. };
  77. },
  78. options: {
  79. renderInfoExternally: true,
  80. autoHideInfo: false,
  81. popupMargin: "20 80",
  82. renderInfoPin: false,
  83. renderMenu: false,
  84. renderButtons: false
  85. }
  86. }