$spagination = flexSlider.find(“.spagination”);
SPagination.Init($spagination.get( 0 ),
size: slide_obj.count, // pages size
page: 1, // selected page
step: 3, // pages before and after current
cb: function(p)
flexSlider.flexAnimate(p-1, true);


function gtx_gallery_slide_before(slide_obj)
var slide=slide_obj.animatingTo;
$active_slide=$all_slides.eq(slide) ;
slideshow_ad_loaded = false;


gtx_mixpanel_track_slide( slide_obj );


if($thumbs!==”” && navigation == “paginated_thumbs”)
var right_item=$slider.find(“.slides li[data-i=”+(slide +1 )+”]”).attr(“data-i-only-pics”)
if( right_item!= “”)
$thumbs.find(“li.gtx-thumb-img[data-i=”+(slide +1 )+”]”).addClass(“flex-active-slide”);
$page=$thumbs.find(“.slides>li”).has(“li[data-i=”+(slide +1 )+”]”);
$thumbs.flexAnimate($page.index(), true);

function gtx_gallery_slide_after(slide_obj)
var slide=slide_obj.animatingTo;
$active_slide=$all_slides.eq(slide) ;


addAdInto($ad_container,slide:slide_obj.animatingTo +1);

//Force arrows to be shown when on mobile and when the slide is an ad

//Force arrows to hide when on mobile and when the slide is not an ad

if($thumbs!==”” && navigation == “thumbnails”)
var right_item=$slider.find(“.slides>li[data-i=”+(slide +1 )+”]”).attr(“data-i-only-pics”)
if( right_item!= “”)
$thumbs.find(“li.gtx-thumb-img”).eq(right_item -1 ).addClass(“flex-active-slide”);
$thumbs.flexAnimate(right_item-1, true);

if(typeof(googletag) != “undefined” && googletag !== null)
var tmp_now=new Date().getTime();
var last_refresh_diff= tmp_now – last_ad_refresh;
// Check if we loaded the ad in and thusly don’t need to refresh
if(refresh_all_ads && !slideshow_ad_loaded)
else if( $.isArray(ad_slots_refresh) && last_refresh_diff > 1000 && ad_slots_refresh.length)
//Refresh some ads

var $slides_to_hanle=$all_slides.slice(slide, slide + range +1);
if(slide – range >= 0)
$slides_to_hanle=$.merge($slides_to_hanle, $all_slides.slice(slide – range, slide ));
$slides_to_hanle=$.merge($slides_to_hanle, $all_slides.slice(0, range ));
$slides_to_hanle=$.merge($slides_to_hanle, $all_slides.slice(range * -1 ));

if(slide + range >= $all_slides.size())
//handle first slides
$slides_to_hanle= $.merge($slides_to_hanle, $all_slides.slice(0,range));

$slides_to_hanle.find(“.gtx-image-container[data-background]”).each(function ()
var src = $(this).attr(“data-background”);
$(this).css(“background-image”, “url(“+src+”)”).removeAttr(“data-background”);

if( typeof SPagination !== “undefined” && flexSlider.find(“.spagination”).length>0 )
if(SPagination.page != slide+1)
SPagination.page = slide + 1;

function gtx_gallery_thumbs_set_backwards()
backward_pos = $thumbs.find(“.gtx-thumb-backward”).position().left;
backward_width = $thumbs.find(“.gtx-thumb-backward”).width();
backward_right_pos = backward_pos + backward_width;

container_width = $thumbs.find(“.flex-viewport”).width();

fully_visible = backward_right_pos 8)

function gtx_gallery_thumbs_after(slide_obj)
if(slide_obj.count > 8)

function gtx_gallery_paginated_thumbs_start(slide_obj)
if(false && slide_obj.count > 8)

if(slide_obj.count > 8)
$pagination = $thumbs.find(“.spagination”);
SPagination.Init($pagination.get( 0 ),
size: slide_obj.count, // pages size
page: 1, // selected page
step: 3, // pages before and after current
cb: function(p)
$thumbs.flexAnimate(p-1, true);


function gtx_gallery_paginated_thumbs_before(slide_obj)
var slide=(typeof slide_obj == “object” && slide_obj.animatingTo ? slide_obj.animatingTo : 0);

function gtx_gallery_paginated_thumbs_after(slide_obj)
var slide=(typeof slide_obj == “object” && slide_obj.animatingTo ? slide_obj.animatingTo : 0);
//THUMBS SYNC – Go to first slide of this batch
if($thumbs!==”” && navigation == “paginated_thumbs”)

var $active_slide=$slider.find(“.slides>li.flex-active-slide”);
var $active_thumb_page=$thumbs.find(“.slides>li.flex-active-slide”);
//Check if the current slide is within this thumb batch
flexSlider.flexAnimate(first_thumb – 1, true);

if( typeof SPagination !== “undefined” && $thumbs.find(“.spagination”).length>0 )
if(SPagination.page != slide+1)
SPagination.page = slide + 1;

function gtx_gallery_paginated_thumbs_lazy(slide_obj)
var slide=(typeof slide_obj == “object” && slide_obj.animatingTo ? slide_obj.animatingTo : 0);
if($all_thumbs!==”” && navigation == “paginated_thumbs”)
var $slides_to_hanle=$all_thumbs.slice(slide, slide + range + 1);
if(slide – range >= 0)
$slides_to_hanle=$.merge($slides_to_hanle, $all_thumbs.slice(slide – range, slide ));
$slides_to_hanle=$.merge($slides_to_hanle, $all_thumbs.slice(0, range ));
$slides_to_hanle=$.merge($slides_to_hanle, $all_thumbs.slice(range * -1 ));

if(slide + range >= $all_thumbs.size())
//handle first slides
$slides_to_hanle= $.merge($slides_to_hanle, $all_thumbs.slice(0,range));

$slides_to_hanle.each(function ()
$(this).find(“img[lazy-src]”).each(function ()
var src = $(this).attr(“lazy-src”);
if(!src) return;

function adjustNavHeight()
imageHeight = flexSlider.find(“.gtx-slide-img.flex-active-slide .gtx-image-container”).outerHeight();
if(imageHeight > 0)

var nextSlotId = 1;
function generateNextSlotName()
var id = nextSlotId++;
return “adslot_” + id+”_”+Math.floor( Date.now() / 1000 );

function addAdInto(selector,options)

gtx_gallery_syncHash = function(path)
pic = “”;
re = /pic/?([0-9]+)/?$/i;

if(!path && window.location.hash && window.location.hash.match(re)) path = window.location.hash;
if(!path && window.location.pathname && window.location.pathname.match(re)) path = window.location.pathname;
matchslide = path.match(re);
if(matchslide && matchslide[1]>0)
pic = parseInt(matchslide[1]);

if(!isNaN(pic) && pic > 0)
avoid_next_pageview = true;
flexSlider.flexAnimate(slide – 1, true);

gtx_mixpanel_track_slide( )

function changeURL(pic)
basepath = window.location.pathname.replace(//pic/?([0-9]+)/?$/i,”/”);
if(isNaN(pic)) return;

path = basepath + “pic/”+pic+”/”;

title = “Pic “+pic;
if (typeof(window.history.replaceState) == “function”)
window.history.replaceState(, title, path);
window.location.hash = path;

function get_slide_by_attachment_id(id)
var slide=$slider.find(“.slides li[data-attachment_id=”+id+”]”).attr(“data-i”);
return parseInt(slide, 10);

function gtx_mixpanel_track_slide( slide_obj )
var slide = slide_obj.animatingTo;
var slide = 0;

$active_slide=$all_slides.eq(slide) ;

var loc=location.pathname+”#slide”+(parseInt(slide)+1);
ga(“send”, “pageview”, loc);
ga(“gtxcelTracker.send”, “pageview”, loc);


avoid_next_pageview = false;
//Mixpanel track image viewed
if(typeof mixpanel !== “undefined”)
var slide_type=$active_slide.attr(“data-slide-type”)
console.error(“error”, err);

//Add a callback on ad render
googletag.pubads().addEventListener(‘slotRenderEnded’, function(event)
var slotName=event.slot.getSlotElementId();
if(typeof adslots[slotName] !==”undefined” && !event.isEmpty)


animation: “slide”,
controlNav: false,
animationLoop: false,
slideshow: false,
itemWidth: 100,
itemMargin: 5,
move: 1,
//asNavFor: “#gtx-gallery-slider-375085”,
prevText: “”,
nextText: “”,
after: gtx_gallery_thumbs_after,
after: gtx_gallery_thumbs_before
$thumbs.find(“li.gtx-thumb-img”).first( ).addClass(“flex-active-slide”);

animation: “slide”,
pauseOnHover: true,
controlNav: false,
//animationLoop: false,
//slideshow: false,
//sync: “#gtx-gallery-thumbs-375085”,
prevText: “”,
nextText: “”,
slideshow: false,
init: gtx_gallery_slide_init,
start: gtx_gallery_slide_start,
before: gtx_gallery_slide_before,
after: gtx_gallery_slide_after



COLUMBIA, S.C. (AP) — For nearly a year, South Carolina senators have carefully and methodically worked on a bill that would overhaul public education in South Carolina. But time to consider the bill might be running out.

Wednesday marked the 13th day of floor debate on the proposal with senators still considering changes instead of debating the entire bill.

Five weeks into the 18-week session, senators have not discussed any other significant legislation on the Senate floor. Eight days earlier, the South Carolina Chamber of Commerce and Manufacturers Alliance asked the Senate to finish meaningful education reform and move on to other things.

Frustration is mounting. Senators delayed the start of Wednesday’s session by about an hour for party member meetings. At one point, Senate President Harvey Peeler had to remind two senators to “simmer down” during debate.

Dozens of amendments to the bill remain to be debated as more are filed daily. A vote called by Senate Majority Leader Shane Massey to limit debate late Tuesday night failed 28-12, with a number of Republicans voting against their leader.

“The debate on the amendments is still moving along, so I didn’t vote to close debate. And I think the bill still needs a lot of work,” said Republican Sen. Wes Climer of Rock Hill.

Limiting debate would stop lawmakers from filing additional amendments to change the bill. A number of lawmakers said they aren’t sure they can support the bill as written, which is the product of more than a dozen meetings last year and debate on the Senate floor. The House passed its own version last March.

The Senate bill has already been altered. Lawmakers added up to $3,300 yearly in scholarships for education majors paid for by lottery money. It doubles the amount of money given to teachers to buy supplies to $550 annually. The bill would also pay fees for certifications for first-time teachers and provide daily breaks without students and other protections.

The bill also allows school districts to set their own start dates. South Carolina has a law requiring school districts not to start before the third Monday of the year and lawmakers from areas especially dependent on tourism, like Horry County and Myrtle Beach don’t want school to start earlier.

Senators met in small groups as the debate continued Wednesday looking for some way to get enough of them on board to pass the amendments that could clear the way to pass the proposal. But not everyone was confident middle ground will be found.

“Do you realize the compromise might be fire the school boards and let Horry County set the start date?” said Republican Sen. Shane Martin, a former school board member in Spartanburg County.

In the first five weeks of the 2020 session, the Senate hasn’t faced any other pressing issues. But that will change soon. On Tuesday, officials released a report about the potential of selling state-owned utility Santee Cooper. That might be the only issue more complex than overhauling public education.

The Senate is interrupting debate Thursday and won’t meet at all Tuesday so its Finance Committee can be briefed and ask questions about the potential sale of the utility. After that, the Senate will get the state budget.

The debate has been dominated by Democratic Sen. Mike Fanning of Great Falls who has cast himself as a protector of teachers. He proposed an amendment Wednesday to give teachers a $3,000 raise that other senators said was out of order because it was a budget matter.

“You know this. I think you are using this to your advantage,” said Massey, pointing out teachers were already posting on Twitter that senators don’t support the raise.

Fanning has proposed dozens of amendments and hinted he might filibuster the bill unless it is significantly improved.

“I appreciate the real consideration they are getting as they are voted down,” Fanning said just after the Senate rejected the sixth amendment he had proposed on Wednesday, No. 114.


Source link Google News