๐
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (navigator.userAgent.match(/Trident\/7\./)) { | |
// if IE | |
$("body").on("mousewheel", function() { | |
// remove default behavior | |
event.preventDefault(); | |
//scroll without smoothing | |
var wheelDelta = event.wheelDelta; | |
var currentScrollPosition = window.pageYOffset; | |
window.scrollTo(0, currentScrollPosition - wheelDelta); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dbo.PersonaBarMenu | |
Change Parent Menu ID of a page that you created in the admin menu. | |
DNN allows you to have parent page as admin, having it in admin section allows it to be show in this DB table |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// <p>Loading</p> | |
p::after { | |
content: ''; | |
position: absolute; | |
animation: dots 1s linear infinite; | |
} | |
@keyframes dots { | |
25% { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.animateCSS = function(element, animationName, callback) { | |
element.classList.add('animated', animationName) | |
function handleAnimationEnd() { | |
element.classList.remove('animated', animationName) | |
element.removeEventListener('animationend', handleAnimationEnd) | |
if (typeof callback === 'function') callback() | |
} | |
element.addEventListener('animationend', handleAnimationEnd) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using System.Dynamic; | |
@using System.Web.UI.HtmlControls; | |
@using DotNetNuke.Common; | |
@using DotNetNuke.Entities.Users; | |
@using CartViper.Modules.Store.Admin; | |
@using CartViper.Modules.Store.Catalog; | |
@using CartViper.Modules.Store.Extensions; | |
@using CartViper.Modules.Store.WebControls; | |
@using CartViper.Modules.Store.Data; | |
@inherits DotNetNuke.Web.Razor.DotNetNukeWebPage<dynamic> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXEC sp_MSforeachdb | |
'IF EXISTS (SELECT * FROM [?].INFORMATION_SCHEMA.TABLES | |
WHERE TABLE_NAME = ''PaleDNN_Templates'') | |
BEGIN | |
PRINT DB_NAME(DB_ID(''?'')) | |
END' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Better Version | |
EXEC sp_MSforeachdb | |
--Declaring Variables | |
DECLARE @var2 VARCHAR(50) | |
SET @var2 = ''[email protected]'' | |
DECLARE @var1 int | |
--Checking to see if Andrew exists | |
IF EXISTS (SELECT * FROM Users WHERE Email = @var2) | |
--If Andrew Exists, Run this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EXEC sp_MSforeachdb | |
' | |
UPDATE [?].dbo.Users | |
SET IsDeleted = true | |
WHERE Email = ''[EMAILADDRESS]''' |
OlderNewer