Sha256: 6633e37c1fc19a41d25a630cc8caa34812dfbef1779a14e967b6738c2e354668

Contents?: true

Size: 491 Bytes

Versions: 14

Compression:

Stored size: 491 Bytes

Contents

/*
 * gyazo.js: gyazo plugin for tDiary
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */
$(function() {
	$('.gyazo-images img')
	.on({
		'mouseenter': function(){
			$(this).css('cursor', 'pointer');
		},
		'mouseleave': function(){
			$(this).css('cursor', 'default');
		},
		'click': function(){
			var url = $(this).attr('data-url');
			var text = $.makePluginTag('gyazo', function(){
				return ["'" + url + "'", "'[description]'"]
			})
			$('#body').insertAtCaret(text);
		}
	})
})

Version data entries

14 entries across 13 versions & 2 rubygems

Version Path
tdiary-contrib-5.3.0 js/gyazo.js
tdiary-contrib-5.2.4 js/gyazo.js
tdiary-contrib-5.2.3 js/gyazo.js
tdiary-contrib-5.2.2 js/gyazo.js
tdiary-contrib-5.2.1 js/gyazo.js
tdiary-contrib-5.2.0 js/gyazo.js
tdiary-contrib-5.1.7 js/gyazo.js
tdiary-contrib-5.1.6 js/gyazo.js
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/js/gyazo.js
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/bundler/gems/tdiary-contrib-d1e41204db13/js/gyazo.js
tdiary-contrib-5.1.5 js/gyazo.js
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/js/gyazo.js
tdiary-contrib-5.1.4 js/gyazo.js
tdiary-contrib-5.1.3 js/gyazo.js