Container Switcher

Using Classic ASP and cookies, allow users to personally choose between normal view and full-width view, which is "Container" and "Container-Fluid" in bootstrap

CodeFunctionName
What is this?

Public

Tested

Original Work
SiteRoot                        = "/"
ActionCode                    = "/Cmd/?Action="
ModCookieID                    = "SiteNameIdentifier"
SiteWi                        = Request.Cookies(ModCookieID & "PerMachineSettings_SiteWidth")
ContainerType                = "container"
MenuLink61                     = " <a href=""" & ActionCode & "4017&R=" & SiteRoot & """ class=""btn btn-secondary"" >" & _
    " <i class=""far fa-expand fa-lg fa-flip-vertical"" > </i > Wide View </a >"
If SiteWi > "" Then
    If Fix(SiteWi) > 0 Then
        ContainerType        = "container-fluid"
        MenuLink61             = " <a href=""" & ActionCode & "4018&R=" & SiteRoot & """ class=""btn btn-secondary"" >" & _
            " <i class=""far fa-compress fa-lg fa-flip-vertical"" > </i > Normal View </a >"
    End If
End If

< div class=" < % = ContainerType % >" >
    < % = MenuLink61 % >
< / div >

Views 4,114

Downloads 1,460

CodeID
DB ID