Created
May 13, 2022 17:26
-
-
Save sefatanam/af0fb156b148f27b1ad7f17822644f7e to your computer and use it in GitHub Desktop.
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
| @model Curtain | |
| @{ | |
| ViewData["Title"] = "DetailCurtain"; | |
| } | |
| <div class="container p-3"> | |
| <div class="row pt-4"> | |
| <div class="col-6"> | |
| <h2 class="text-dark">Curtain Details</h2> | |
| </div> | |
| <hr/> | |
| </div> | |
| <div class="py-3 px-4 border border-1 border-gray"> | |
| <h1>@Model.Name</h1> | |
| @*<img style="object-fit:cover; max-height:400px; border: none" src="~/@Model.ImageUrl" class="img-thumbnail" alt="...">*@ | |
| <img style="object-fit:cover; max-height:400px" src="~/@Model.ImageUrl" class="img-fluid m-2" alt="Cover Image"> <br/> | |
| <img style="object-fit:cover; max-height:400px;" src="~/@Model.ImageOne" class="img-fluid m-2" alt="Cover Image"> | |
| <img style="object-fit:cover; max-height:400px;" src="~/@Model.ImageTwo" class="img-fluid m-2" alt="Cover Image"> | |
| <img style="object-fit:cover; max-height:400px;" src="~/@Model.ImageThree" class="img-fluid m-2" alt="Cover Image"> | |
| <p class="lead">@Model.Description</p> | |
| <a class="btn btn-success m-2 shadow-none" asp-controller="Home" asp-action="Index"> | |
| <i class="bi bi-arrow-left"></i> Back To List | |
| </a> | |
| <button class="btn btn-primary shadow-none" onclick="copyUrl()"><i class="bi bi-clipboard"></i> Copy to Clipboard</button> | |
| <button class="btn btn-primary shadow-none" onclick="share_messenger()"><i class="bi bi-clipboard"></i> Share on Messager</button> | |
| </div> | |
| </div> | |
| </div> | |
| @section scripts { | |
| <script type="text/javascript"> | |
| function init(){ | |
| let pageUrl = document.location.href; | |
| //console.log("Current Page URL is: ", pageUrl); | |
| } | |
| init(); | |
| function copyUrl(){ | |
| var copyUrl = document.location.href; | |
| navigator.clipboard.writeText(copyUrl); | |
| //console.log("Copied the text: " + copyUrl); | |
| } | |
| function share_messenger(){ | |
| window.open('fb-messenger://share?link=' + encodeURIComponent(window.location.href) + '&app_id=' + encodeURIComponent('450319712953306')); | |
| } | |
| </script> | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment