Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/remmina-web.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '_includes/head/custom.html')
-rw-r--r--_includes/head/custom.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/_includes/head/custom.html b/_includes/head/custom.html
index 4e10971..1ab5ea8 100644
--- a/_includes/head/custom.html
+++ b/_includes/head/custom.html
@@ -1,5 +1,20 @@
<!-- start custom head snippets -->
+<!-- Apply specific styles at elements containing a specific text -->
+<script type="text/javascript" >
+ window.onload = function () {
+ getElementsByContains = function(str,elmtTagName="*",node=document){
+ var elms = document.evaluate( "//"+elmtTagName+"[contains(., '" +str+ "')]" ,node, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null ),
+ nodeSet = [];
+ for ( var i=0 ; i < elms.snapshotLength; i++ ){
+ nodeSet.push(elms.snapshotItem(i));
+ }
+ return nodeSet;
+ }
+ getElementsByContains('Donations','a')[0].style.color ='red';
+}
+</script>
+
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};