mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
rhymix_content class 추가
This commit is contained in:
parent
ed7c0ab8bb
commit
8ccfd963b6
23 changed files with 35 additions and 35 deletions
|
|
@ -24,7 +24,7 @@
|
|||
var thisPlugin = this;
|
||||
|
||||
// extract target text nodes
|
||||
this.extractTargets($('.xe_content'));
|
||||
this.extractTargets($('.rhymix_content, .xe_content'));
|
||||
|
||||
$(this.targets).each(function(){
|
||||
thisPlugin.cast('AUTOLINK', [this]);
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
},
|
||||
extractTargets : function(obj) {
|
||||
var thisPlugin = this;
|
||||
var wrap = $('.xe_content', obj);
|
||||
var wrap = $('.rhymix_content, .xe_content', obj);
|
||||
if(wrap.length) {
|
||||
this.extractTargets(wrap);
|
||||
return;
|
||||
|
|
@ -97,7 +97,7 @@
|
|||
|
||||
xe.registerPlugin(new AutoLink());
|
||||
|
||||
$(document).on('click', '.xe_content a', function() {
|
||||
$(document).on('click', '.rhymix_content a, .xe_content a', function() {
|
||||
var $this = $(this);
|
||||
var href = $this.attr('href');
|
||||
if(!href || /^(?:javascript|mailto):|#/.test(href)) {
|
||||
|
|
|
|||
|
|
@ -256,4 +256,4 @@ var initPhotoSwipeFromDOM = function(gallerySelector) {
|
|||
|
||||
|
||||
// execute above function
|
||||
initPhotoSwipeFromDOM('.xe_content');
|
||||
initPhotoSwipeFromDOM('.rhymix_content, .xe_content');
|
||||
|
|
@ -1 +1 @@
|
|||
.xe_content img{max-width:100%;height:auto !important}
|
||||
.rhymix_content, .xe_content img{max-width:100%;height:auto !important}
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ function getScreen() {
|
|||
|
||||
// 이미지 슬라이드를 보는 함수
|
||||
function slideshow(event) {
|
||||
var container = $(this).closest('.xe_content');
|
||||
var container = $(this).closest('.rhymix_content, .xe_content');
|
||||
var imglist = container.find("img[rel=xe_gallery]");
|
||||
var currentIdx = $.inArray($(this).get(0), imglist.get());
|
||||
var xScreen = getScreen();
|
||||
|
|
@ -242,7 +242,7 @@ $(window).load(function(){
|
|||
});
|
||||
}
|
||||
|
||||
$('.xe_content').each(function() {
|
||||
$('.rhymix_content, .xe_content').each(function() {
|
||||
var contentWidth = dummy.appendTo(this).width();
|
||||
dummy.remove();
|
||||
if(!contentWidth) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue