Rick Scott's Most Unhinged Tweets After Prolific Twitter-Finger 2024
- by Miami New Times
- Dec 31, 2024
- 0 Comments
- 0 Likes Flag 0 Of 5
December 31, 2024
Rick Scott had a lot to say on X, the platform formerly known as Twitter, over the last year. `
});
}
}
],
"vars": {
"placed": "22103540"
}
});
});
`);
sm.containerWidth = options.containerWidth || 640;
sm.containerHeight = options.containerHeight || 480;
sm.containerWidthSmall = options.containerWidthSmall || 300;
sm.containerHeightSmall = options.containerHeightSmall || 300;
//
sm.slideModalStylesText = `
#${sm.containerId} {
position: fixed;
width: ${sm.containerWidth}px;
height: ${sm.containerHeight}px;
max-width: 100%;
background-color: #FFF;
box-sizing: border-box;
transition-timing-function: cubic-bezier(.65,.05,.36,1);
transition-duration: 750ms;
}
#${sm.containerId}.origin-top {
left: calc(50% - ${sm.containerWidth/2}px);
top: -${sm.containerHeight}px;
transition-property: top;
}
#${sm.containerId}.origin-bottom {
left: calc(50% - ${sm.containerWidth/2}px);
bottom: -${sm.containerHeight}px;
transition-property: bottom;
}
#${sm.containerId}.origin-left {
top: calc(50% - ${sm.containerHeight/2}px);
left: -${sm.containerWidth}px;
transition-property: left;
}
#${sm.containerId}.origin-right {
top: calc(50% - ${sm.containerHeight/2}px);
right: -${sm.containerWidth}px;
transition-property: right;
}
#${sm.containerId}.origin-top.slide-to-edge { top: 0; }
#${sm.containerId}.origin-bottom.slide-to-edge { bottom: 0; }
#${sm.containerId}.origin-left.slide-to-edge { left: 0; }
#${sm.containerId}.origin-right.slide-to-edge { right: 0; }
#${sm.containerId}.origin-top.slide-to-center { top: calc(50% - ${sm.containerHeight/2}px); }
#${sm.containerId}.origin-bottom.slide-to-center { bottom: calc(50% - ${sm.containerHeight/2}px); }
#${sm.containerId}.origin-left.slide-to-center { left: calc(50% - ${sm.containerWidth/2}px); }
#${sm.containerId}.origin-right.slide-to-center { right: calc(50% - ${sm.containerWidth/2}px); }
@media (max-width:${sm.containerWidth - 1}px) or (max-height:${sm.containerHeight - 1}px) {
#${sm.containerId} {
width: ${sm.containerWidthSmall}px;
height: ${sm.containerHeightSmall}px;
}
#${sm.containerId}.origin-top {
left: calc(50% - ${sm.containerWidthSmall/2}px);
top: -${sm.containerHeightSmall}px;
transition-property: top;
}
#${sm.containerId}.origin-bottom {
left: calc(50% - ${sm.containerWidthSmall/2}px);
bottom: -${sm.containerHeightSmall}px;
transition-property: bottom;
}
#${sm.containerId}.origin-left {
top: calc(50% - ${sm.containerHeightSmall/2}px);
left: -${sm.containerWidthSmall}px;
transition-property: left;
}
#${sm.containerId}.origin-right {
top: calc(50% - ${sm.containerHeightSmall/2}px);
right: -${sm.containerWidthSmall}px;
transition-property: right;
}
#${sm.containerId}.origin-top.slide-to-center { top: calc(50% - ${sm.containerHeightSmall/2}px); }
#${sm.containerId}.origin-bottom.slide-to-center { bottom: calc(50% - ${sm.containerHeightSmall/2}px); }
#${sm.containerId}.origin-left.slide-to-center { left: calc(50% - ${sm.containerWidthSmall/2}px); }
#${sm.containerId}.origin-right.slide-to-center { right: calc(50% - ${sm.containerWidthSmall/2}px); }
}
`;
//
sm.getLocalStorageVersion = function () {
return parseInt(window.localStorage.getItem(sm.localStorageVersionKey)) || sm.version;
}
sm.getLastDismissedTime = function () {
return parseInt(window.localStorage.getItem(sm.localStorageDismissedKey)) || 0;
}
sm.getLastDismissedForeverTime = function () {
return parseInt(window.localStorage.getItem(sm.localStorageDismissedForeverKey)) || 0;
}
sm.getLastDeniedTime = function () {
return parseInt(window.localStorage.getItem(sm.localStorageDeniedKey)) || 0;
}
sm.resetSlideModalLocalStorage = function () {
window.localStorage.setItem(sm.localStorageVersionKey, sm.version);
window.localStorage.removeItem(sm.localStorageDismissedKey);
window.localStorage.removeItem(sm.localStorageDismissedForeverKey);
window.localStorage.removeItem(sm.localStorageDeniedKey);
}
sm.showSlideModal = function () { sm.container.addClass(`slide-to-${sm.slideTo}`); }
sm.hideSlideModal = function () { sm.container.removeClass(`slide-to-${sm.slideTo}`); }
sm.dismissSlideModal = function () {
window.localStorage.setItem(sm.localStorageVersionKey, sm.version);
window.localStorage.setItem(sm.localStorageDismissedKey, new Date().getTime());
console.log(`SlideModal dismissed.`);
sm.hideSlideModal();
}
sm.dismissForeverSlideModal = function () {
window.localStorage.setItem(sm.localStorageVersionKey, sm.version);
window.localStorage.setItem(sm.localStorageDismissedForeverKey, new Date().getTime());
console.log(`SlideModal dismissed.`);
sm.hideSlideModal();
}
sm.denySlideModal = function (e) {
window.localStorage.setItem(sm.localStorageVersionKey, sm.version);
window.localStorage.setItem(sm.localStorageDeniedKey, new Date().getTime());
console.log(`SlideModal denied.`);
sm.hideSlideModal();
}
injectSlideModalStyles = function () {
// console.log(`SlideModal styles added.`);
const slideModalStyleContainer = jQuery(`
`);
slideModalStyleContainer.text(sm.slideModalStylesText);
jQuery('head').append(slideModalStyleContainer);
}
injectSlideModalBlock = function () {
// console.log(`SlideModal element added.`);
sm.container = jQuery(`
`);
sm.container
.attr(`id`, sm.containerId)
.attr(`fdn-slide-modal`,``)
.attr(`form-part-showing`,`1`)
.addClass(`origin-${sm.slideOrigin}`)
.html(sm.htmlBlock)
jQuery('body').append(sm.container);
}
setupSlideModalBehavior = function () {
// console.log(`SlideModal behavior setup.`);
jQuery(document).on(`keydown`, (e) => {
if (e.key === `Escape` && sm.escClose === true) {
sm.hideSlideModal();
}
});
jQuery(document).on(`click`, (e) => {
const myTarget = jQuery(e.target);
const notSlideModal = myTarget.not(`#${sm.containerId} *`).length > 0;
const isDismissTarget = myTarget.closest(sm.dismissSelector).length > 0;
const isDismissForeverTarget = myTarget.closest(sm.dismissForeverSelector).length > 0;
const isDenyTarget = myTarget.closest(sm.deniedSelector).length > 0;
// window.console.log(`notSlideModal: ${notSlideModal}; isDismissTarget: ${isDismissTarget}; isDenyTarget: ${isDenyTarget}; sm.bgClose: ${sm.bgClose}`);
if (notSlideModal && sm.bgClose === true) sm.hideSlideModal();
if (isDismissTarget || isDismissForeverTarget || isDenyTarget) e.preventDefault();
if (isDismissTarget) sm.dismissSlideModal();
if (isDismissForeverTarget) sm.dismissForeverSlideModal();
if (isDenyTarget) sm.denySlideModal();
});
}
injectSlideModalStyles();
injectSlideModalBlock();
setupSlideModalBehavior();
const contentReady = new Event(sm.contentReadyEventId);
// console.log(`Content ready fired. EventId: ${sm.contentReadyEventId}`);
window.dispatchEvent(contentReady);
if (sm.getLocalStorageVersion() sm.getLastDismissedTime() + sm.delayAfterDismissed;
const notDismissedForever = new Date().getTime() > sm.getLastDismissedForeverTime() + sm.delayAfterDismissedForever;
const notDenied = new Date().getTime() > sm.getLastDeniedTime() + sm.delayAfterDenied;
jQuery(() => {
if (notDismissed && notDenied && notDismissedForever)
{
// 100 milliseconds added to ensure setup is complete before show
setTimeout(sm.showSlideModal, sm.delayBeforeShow + 100);
}
});
Foundation.SlideModal[slideModalId] = sm;
}
Stay in the Know
Please first to comment
Related Post
Stay Connected
Tweets by elonmuskTo get the latest tweets please make sure you are logged in on X on this browser.
Sponsored
Popular Post
Middle-Aged Dentist Bought a Tesla Cybertruck, Now He Gets All the Attention He Wanted
32 ViewsNov 23 ,2024
tesla Model 3 Owner Nearly Stung With $1,700 Bill For Windshield Crack After Delivery
32 ViewsDec 28 ,2024