docs: adding microsoft clarity tracking code to headers of pages

This commit is contained in:
Hamid Reza Mohammadi 2022-08-02 19:21:46 +04:30
parent 7f60428fa9
commit 28da2349ad
12 changed files with 88 additions and 21 deletions

View File

@ -21,7 +21,15 @@
<script>
function wpopen(macagna) {
window.open(macagna, '_blank', 'width=600,height=700,scrollbars=yes,status=yes');
}</script>
}
</script>
<script>
(function(c, l, a, r, i, t, y) {
c[a] = c[a] || function() { (c[a].q = c[a].q || []).push(arguments) };
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "d1fo6nsibh");
</script>
</head>
<body>
@if (!string.IsNullOrEmpty(Model.LastError))

View File

@ -17,7 +17,7 @@
<script src="/lib/jquery/dist/jquery.min.js"></script>
<script src="/js/utils.js"></script>
<script src="/js/beeptunes.js"></script>
<script type="text/javascript">
<script>
$(function () {
$('#spotify').on('click', function() {
window.location.href = "@Html.Raw($"/spotify/?p={Model.PoemId}")";

View File

@ -24,6 +24,7 @@
color: #fff;
border: none !important;
}
.stacktrace .st-type {
color: #0a8472;
font-weight: bolder
@ -56,7 +57,13 @@
}
</style>
<script>
(function(c, l, a, r, i, t, y) {
c[a] = c[a] || function() { (c[a].q = c[a].q || []).push(arguments) };
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "d1fo6nsibh");
</script>
</head>
<body>
@ -101,15 +108,15 @@
<script>
/*!
* netStack v1.0.14
* A simple and easy jQuery plugin for highlighting .NET stack traces
* License : Apache 2
* Author : https://elmah.io
*/
(function ($) {
* netStack v1.0.14
* A simple and easy jQuery plugin for highlighting .NET stack traces
* License : Apache 2
* Author : https://elmah.io
*/
(function($) {
'use strict';
$.fn.netStack = function (options) {
$.fn.netStack = function(options) {
function search(nameKey, myArray) {
for (var i = 0; i < myArray.length; i++) {
@ -139,7 +146,7 @@
repl: '\r\n --- End of inner exception stack trace ---'
}
]
searchReplaces.forEach(function (item) {
searchReplaces.forEach(function(item) {
result = result.replace(item.find, item.repl);
});
return result;
@ -166,7 +173,7 @@
{ name: 'german', at: 'bei', in: 'in', line: 'Zeile' }
];
return this.each(function () {
return this.each(function() {
// Get the stacktrace, sanitize it, and split it into lines
@ -293,13 +300,13 @@
}(jQuery));
$(document).ready(function () {
$(document).ready(function() {
$('.stacktrace').netStack({
prettyprint: true
});
});
</script>
</body>

View File

@ -25,6 +25,14 @@
var stickyEnabled = cookieValue != "false";
</script>
<script>
(function(c, l, a, r, i, t, y) {
c[a] = c[a] || function() { (c[a].q = c[a].q || []).push(arguments) };
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "d1fo6nsibh");
</script>
</head>
<body>

View File

@ -14,7 +14,7 @@
<link href="/css/spotify.css" rel="stylesheet" type="text/css" />
<script src="/lib/jquery/dist/jquery.min.js"></script>
<script src="~/js/golha.js"></script>
<script type="text/javascript">
<script>
$(function () {
$('#spotify').on('click', function() {
window.location.href = "@Html.Raw($"/spotify/?p={Model.PoemId}")";

View File

@ -27,6 +27,14 @@
var stickyEnabled = cookieValue != "false";
</script>
<script>
(function(c, l, a, r, i, t, y) {
c[a] = c[a] || function() { (c[a].q = c[a].q || []).push(arguments) };
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "d1fo6nsibh");
</script>
</head>
<body>

View File

@ -60,7 +60,13 @@
</script>
}
<script>
(function(c, l, a, r, i, t, y) {
c[a] = c[a] || function() { (c[a].q = c[a].q || []).push(arguments) };
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "d1fo6nsibh");
</script>
</head>
<body>

View File

@ -14,6 +14,13 @@
<meta name="robots" content="noindex, nofollow" />
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
<script>
(function(c, l, a, r, i, t, y) {
c[a] = c[a] || function() { (c[a].q = c[a].q || []).push(arguments) };
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "d1fo6nsibh");
</script>
</head>
<body class="bk-background">
<div id="hdr">

View File

@ -28,6 +28,14 @@
var stickyEnabled = cookieValue != "false";
</script>
<script>
(function(c, l, a, r, i, t, y) {
c[a] = c[a] || function() { (c[a].q = c[a].q || []).push(arguments) };
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "d1fo6nsibh");
</script>
</head>
<body>
@ -42,7 +50,7 @@
<div class="actionbox">
<form action="/search" method="get" id="searchform">
<input type="text" name="s" id="s" class="inputText" value="@Model.Query" placeholder="جستجو" />
@if(Model.ExactSearch)
@if (Model.ExactSearch)
{
<input type="hidden" name="es" id="es" value="1" />
}

View File

@ -13,6 +13,13 @@
<meta name="robots" content="noindex, nofollow" />
<link rel="shortcut icon" href="/favicon.ico?version=1" type="image/x-icon" />
<link href="/css/p8.css?version=48" rel="stylesheet" type="text/css" />
<script>
(function(c, l, a, r, i, t, y) {
c[a] = c[a] || function() { (c[a].q = c[a].q || []).push(arguments) };
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "d1fo6nsibh");
</script>
</head>
<body class="bk-background">
<div id="hdr">

View File

@ -26,16 +26,24 @@
var stickyEnabled = cookieValue != "false";
</script>
@if(Model.CanEdit)
@if (Model.CanEdit)
{
<script>
function redirectToTransferMeter(){
function redirectToTransferMeter() {
var meter = document.getElementById("v").value;
window.location.href = "/Admin/TransferMeter?m=" + encodeURIComponent(meter);
}
</script>
}
<script>
(function(c, l, a, r, i, t, y) {
c[a] = c[a] || function() { (c[a].q = c[a].q || []).push(arguments) };
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "d1fo6nsibh");
</script>
</head>
<body>
@ -174,7 +182,7 @@
<input type="submit" class="width-100per margin-top-5px" value="اعمال ورودی‌ها" />
@if(Model.CanEdit)
@if (Model.CanEdit)
{
<a onclick="redirectToTransferMeter()" class="pagebutton" role="button">انتقال وزن</a>
}

View File

@ -17,7 +17,7 @@
<script src="/lib/jquery/dist/jquery.min.js"></script>
<script src="/js/utils.js"></script>
<script src="/js/spotify.js?version=1"></script>
<script type="text/javascript">
<script>
$(function () {
$('#spotify').on('click', function() {
window.location.href = "@Html.Raw($"/spotify/?p={Model.PoemId}")";