@@ -831,10 +831,10 @@ <h2>Options</h2>
831831 // and they will be placed into toolbar (class="fancybox-toolbar"` element)
832832 buttons: [
833833 "zoom",
834- //' share' ,
835- //' slideShow' ,
836- //' fullScreen' ,
837- //' download' ,
834+ //" share" ,
835+ //" slideShow" ,
836+ //" fullScreen" ,
837+ //" download" ,
838838 "thumbs",
839839 "close"
840840 ],
@@ -951,7 +951,7 @@ <h2>Options</h2>
951951
952952 btnTpl: {
953953 download:
954- '<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}">' +
954+ '<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;" >' +
955955 '<svg viewBox="0 0 40 40">' +
956956 '<path d="M13,16 L20,23 L27,16 M20,7 L20,23 M10,24 L10,28 L30,28 L30,24" />' +
957957 "</svg>" +
@@ -978,23 +978,26 @@ <h2>Options</h2>
978978
979979 // Arrows
980980 arrowLeft:
981- '<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}">' +
981+ '<a data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}" href="javascript:; ">' +
982982 '<svg viewBox="0 0 40 40">' +
983983 '<path d="M18,12 L10,20 L18,28 M10,20 L30,20"></path>' +
984984 "</svg>" +
985- "</button >",
985+ "</a >",
986986
987987 arrowRight:
988- '<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}">' +
988+ '<a data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}" href="javascript:; ">' +
989989 '<svg viewBox="0 0 40 40">' +
990990 '<path d="M10,20 L30,20 M22,12 L30,20 L22,28"></path>' +
991991 "</svg>" +
992- "</button >"
992+ "</a >"
993993 },
994994
995995 // Container is injected into this element
996996 parentEl: "body",
997997
998+ // Hide browser vertical scrollbars; use at your own risk
999+ hideScrollbar: true,
1000+
9981001 // Focus handling
9991002 // ==============
10001003
@@ -1027,13 +1030,13 @@ <h2>Options</h2>
10271030 // Customize or add new media types
10281031 // Example:
10291032 /*
1030- media : {
1031- youtube : {
1032- params : {
1033- autoplay : 0
1033+ media : {
1034+ youtube : {
1035+ params : {
1036+ autoplay : 0
1037+ }
10341038 }
10351039 }
1036- }
10371040 */
10381041 media: {},
10391042
@@ -1060,8 +1063,8 @@ <h2>Options</h2>
10601063 // Example:
10611064 /*
10621065 afterShow: function( instance, current ) {
1063- console.info( 'Clicked element:' );
1064- console.info( current.opts.$orig );
1066+ console.info( 'Clicked element:' );
1067+ console.info( current.opts.$orig );
10651068 }
10661069 */
10671070
@@ -1115,7 +1118,6 @@ <h2>Options</h2>
11151118
11161119 mobile: {
11171120 idleTime: false,
1118-
11191121 clickContent: function(current, event) {
11201122 return current.type === "image" ? "toggleControls" : false;
11211123 },
0 commit comments