{"id":1246,"date":"2010-12-18T14:28:08","date_gmt":"2010-12-18T05:28:08","guid":{"rendered":"https:\/\/y2tech.net\/blog\/?p=1246"},"modified":"2011-01-30T23:47:12","modified_gmt":"2011-01-30T14:47:12","slug":"testing_galleria_v12_no4","status":"publish","type":"post","link":"https:\/\/y2tech.net\/blog\/inet\/web\/testing_galleria_v12_no4-1246\/","title":{"rendered":"Galleria V1.2 \u3092\u8a66\u3059\uff08\u305d\u306e\uff14\uff09"},"content":{"rendered":"<h3>Galleria V1.2\u306e\u6a5f\u80fd\u62e1\u5f35\u306b\u95a2\u3059\u308b\u88dc\u8db3\u4e8b\u9805<\/h3>\r\n<br>\r\n<p>11\u6708\u306b\u6b63\u5f0f\u7248\u3092\u30ea\u30ea\u30fc\u30b9\u3059\u308b\u4e88\u5b9a\u3060\u3068\u3044\u3046Galleria V1.2\u3067\u3059\u304c\u3001\u307e\u3060\u4f55\u3082\u30a2\u30ca\u30a6\u30f3\u30b9\u304c\u306a\u3044\u3068\u3053\u308d\u3092\u898b\u308b\u3068\u30d0\u30b0\u30d5\u30a3\u30af\u30b9\u304c\u307e\u3060\u5341\u5206\u3067\u306f\u306a\u3044\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff0e<\/p>\r\n<br>\r\n<p>\u30ae\u30e3\u30e9\u30ea\u30fc\u306e\u753b\u50cf\u3092\u8868\u793a\u3059\u308b\u969b\u306b\u3001\u65e2\u306b\u8868\u793a\u3057\u305f\u753b\u50cf\u306b\u623b\u3063\u305f\u3068\u304d\u306b\u6642\u6298\u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u306a\u3044\uff08\u753b\u50cf\u306ewidth, height\u5c5e\u6027\u304c 0 \u306b\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u308b\uff09\u5834\u5408\u304c\u898b\u53d7\u3051\u3089\u308c\u307e\u3059\uff0e\u3069\u306e\u3088\u3046\u306a\u6642\u306b\u3053\u306e\u73fe\u8c61\u304c\u8d77\u304d\u308b\u306e\u304b\u7a81\u304d\u6b62\u3081\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u307e\u3060\u30d0\u30b0\u5831\u544a\u306f\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u6642\u9593\u304c\u3042\u308c\u3070\u8ffd\u8de1\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\uff0e<\/p>\r\n<br>\r\n<p>Galleria\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u773a\u3081\u3066\u3044\u305f\u3089\u3001\u6a5f\u80fd\u62e1\u5f35\u306e\u53c2\u8003\u306b\u306a\u308a\u305d\u3046\u306a\u8a18\u8ff0\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u305d\u306e\u3046\u3061\u306e\u5e7e\u3064\u304b\u306b\u3064\u3044\u3066\u88dc\u8db3\u8aac\u660e\u3092\u3057\u3066\u304a\u304d\u307e\u3059\uff0e\r\n<br>\r<\/p>\u3000\r\n<h4>\u30fb&#8221;this&#8221; \u30ad\u30fc\u30ef\u30fc\u30c9\u306e\u53d6\u308a\u6271\u3044<\/h4>\r\n<br>\r\n<p>Galleria\u672c\u4f53\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3084\u30c6\u30fc\u30de\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u306b\u983b\u7e41\u306b\u73fe\u308c\u308b\u3001 &#8220;this&#8221; \u3068\u3044\u3046Javascript\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u306e &#8220;this&#8221; \u306e\u6307\u3057\u3066\u3044\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u305d\u306e\u4f7f\u308f\u308c\u3066\u3044\u308b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\uff0e\uff08  &#8220;$&#8221; \u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u306e\u4ee3\u308f\u308a\u306b &#8220;jQuery&#8221; \u3092\u7528\u3044\u3066\u3044\u307e\u3059\uff09 \r\n<br>\r\n<pre><code class=\"language-Markup\">\r\n    jQuery( this.get('stage') ).click( function( e ) { \r\n        this.openLightbox();   \/\/ \u3053\u306e\u5834\u5408\u306e this \u306f 'stage' class\u306e div \u8981\u7d20\uff08HTML)        \r\n                                           \/\/ \u5f93\u3063\u3066Lightbox\u30e1\u30bd\u30c3\u30c9\u306f\u4f7f\u3048\u306a\u3044\r\n    } );\r\n<\/code><\/pre>\r\n<br>\r\n<p>\u3053\u306e\u3088\u3046\u306b &#8220;this&#8221; \u3068\u5358\u7d14\u306b\u8a18\u8ff0\u3059\u308b\u3068\u7d1b\u3089\u308f\u3057\u3044\u306e\u3067\u3001Galleria\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u95a2\u3057\u3066\u306f\u5225\u306a\u540d\u524d\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5909\u6570\u3092\u7528\u610f\u3057\u3066\u6b21\u306e\u3088\u3046\u306b\u533a\u5225\u3057\u3066\u4f7f\u3046\u3088\u3046\u306b\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\uff0e\r\n<br>\r\n<pre><code class=\"language-Markup\">\r\n    var  gallery = this;\r\n    jQuery( gallery.get('stage') ).click( function( e ) {\r\n        gallery.openLightbox(); \/\/ Lightbox\u30e1\u30bd\u30c3\u30c9\u306fOK\r\n    }); \r\n<\/code><\/pre>\r\n<br>\r<\/p>\r\n<h4>\u30fb &#8220;proxy&#8221; \u30e1\u30bd\u30c3\u30c9<\/h4>\r\n<br>\r\n<p>jQuery\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u95a2\u6570\u5185\u3067\u3082 &#8220;this&#8221; \u304c Galleria\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u6307\u3059\u3088\u3046\u306b proxy \u30e1\u30bd\u30c3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\uff0e\r\n<br>\r\n<pre><code class=\"language-Markup\">\r\n    jQuery( this.get('stage') ).click( this.proxy( function( e ) {\r\n        this.openLightbox(); \/\/ Lightbox \u30e1\u30bd\u30c3\u30c9\u3082 OK\r\n        jQuery( e.currentTarget ).addClass('newclass'); \/\/ jQuery\u306e\u64cd\u4f5c\r\n});\r\n<\/code><\/pre>\r\n<br>\r\n\u3084\u306f\u308a\u7121\u7406\u77e2\u7406 this \u3092\u4f7f\u3046\u3088\u308a\u3001\u5225\u306aGalleria\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u7528\u610f\u3057\u3066\u304a\u304f\u65b9\u304c\u3059\u3063\u304d\u308a\u3057\u3066\u3044\u3066\u5206\u304b\u308a\u6613\u3044\u3067\u3059\u306d\uff0e\r\n<br>\r<\/p>\r\n<h4>\u30fb &#8220;extend&#8221; \u30aa\u30d7\u30b7\u30e7\u30f3<\/h4>\r\n<br>\r\n<p>\u3053\u306e &#8220;extend&#8221; \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3059\u308b\u3068\u3001WEB\u30b3\u30f3\u30c6\u30f3\u30c4\u6bce\u306b\u500b\u5225\u306bGalleria\u306e\u6a5f\u80fd\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff0e\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u306f\u30b9\u30c6\u30fc\u30b8\u4e0a\u306e\u753b\u50cf\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068Lightbox\u8868\u793a\u3092\u884c\u3046\u30b5\u30f3\u30d7\u30eb\u304c\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u8da3\u5411\u3092\u5909\u3048\u3066\u30b5\u30e0\u30cd\u30a4\u30eb\u4e0a\u306e\u753b\u50cf\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u81ea\u52d5\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u3092\u958b\u59cb\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff0e<\/p>\r\n<br>\r\n<p>Galleria \u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3082\u81ea\u52d5\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u306e\u6a5f\u80fd\u306f\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u30e6\u30fc\u30b6\u306e\u610f\u5fd7\u3068\u306f\u7121\u95a2\u4fc2\u306b\u52dd\u624b\u306b\u81ea\u52d5\u30b9\u30bf\u30fc\u30c8\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u306e\u3067\u3061\u3087\u3063\u3068\u4e0d\u4fbf\u3067\u3059\uff0e\u305d\u3053\u3067\u30e6\u30fc\u30b6\u304c\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u308a\u7279\u5b9a\u306e\u30ad\u30fc\u5165\u529b\u3092\u884c\u3063\u305f\u308a\u3057\u305f\u5834\u5408\u306b\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u304c\u30b9\u30bf\u30fc\u30c8\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3059\uff0e<\/p>\r\n<br>\r\n<p>\u81ea\u52d5\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u307e\u305f\u5225\u306a\u6a5f\u4f1a\u306b\u8aac\u660e\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306f \u30aa\u30d7\u30b7\u30e7\u30f3\u6a5f\u80fd\u3060\u3051\u3092\u4f7f\u3063\u3066\u7d44\u307f\u8fbc\u3093\u3067\u307f\u307e\u3059\uff0e\r\n<br>\r<\/p>\r\n<pre><code class=\"language-Markup\">\r\n\t\/\/ Initialize Galleria\r\n\tjQuery('#galleria12').galleria( { \r\n\t\tmax_scale_ratio: 1.0,\r\n\t\tmin_scale_ratio: 0.5, \r\n\t\textend: function( options ) {\r\n\t\t\tthis.bind( Galleria.THUMBNAIL, function( e ) {\r\n\t\t\t\r\n\t\t\t\tjQuery( e.thumbTarget ).dblclick( this.proxy( function() {\r\n\t\t\t\t\tthis.play( 3000 ); \/\/ interval [ ms ]\r\n\t\t\t\t}));\r\n\t\t\t});\r\n\t\t}\r\n\t} );\r\n<\/code><\/pre>\r\n<br>\r\n<hr \/>\r\n<h4>\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u81ea\u52d5\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u3092\u958b\u59cb\u3055\u305b\u308b\u4f8b<\/h4>\r\n<br>\r\n<iframe loading=\"lazy\" src=\"https:\/\/y2tech.net\/galleria_test\/test01c.html\"  width=\"680\" height=\"720\"><\/iframe>\u3000\r\n<br>\r\n<span>\u203b\u4efb\u610f\u306e\u30b5\u30e0\u30cd\u30a4\u30eb\u753b\u50cf\u4e0a\u3067\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u305d\u306e\u753b\u50cf\u304b\u3089\u81ea\u52d5\u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc\u304c\u59cb\u307e\u308a\u307e\u3059\uff08\u753b\u50cf\u8868\u793a\u9593\u9694\u306f\uff13\u79d2\u306b\u8a2d\u5b9a\u3057\u3066\u3042\u308a\u307e\u3059\uff09<\/span>\r\n<br>\r\nHTML\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\uff1a <a href=\"https:\/\/y2tech.net\/galleria_test\/test01c.html\">https:\/\/y2tech.net\/galleria_test\/test01c.html<\/a>\r\n<br>\r\n\r\n<hr \/>\r\n\r\n\r\n<br>\r\n","protected":false},"excerpt":{"rendered":"GalleriaV1.2\u95a2\u9023\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u773a\u3081\u3066\u3044\u305f\u3089\u3001Galleria\u3092\u4f7f\u3044\u3053\u306a\u3059\u4e0a\u3067\u53c2\u8003\u306b\u306a\u308a\u305d\u3046\u306a\u8a18\u8ff0\u304c\u5e7e\u3064\u304b\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u7c21\u5358\u306b\u8aac\u660e\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\uff0e","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[11],"tags":[230,241,242],"class_list":["post-1246","post","type-post","status-publish","format-standard","hentry","category-web","tag-galleria-v1-2","tag-241","tag-242"],"_links":{"self":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts\/1246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/comments?post=1246"}],"version-history":[{"count":0,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/posts\/1246\/revisions"}],"wp:attachment":[{"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/media?parent=1246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/categories?post=1246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/y2tech.net\/blog\/wp-json\/wp\/v2\/tags?post=1246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}