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
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 >
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,115
Downloads 1,461
CodeID
DB ID
ANmarAmdeen
610
Revisions
v3.0
Tuesday
May
16
2023