Created
February 22, 2017 06:51
-
-
Save mikhy888/1201f2d59d218df4b330c75b2943a822 to your computer and use it in GitHub Desktop.
This file contains 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
var path_tick = "http://192.168.1.9/optifast-me_com/sites/all/themes/optifast/assets//images/common/right.png"; | |
var tick_mark = "<img src='"+path_tick+"'>"; | |
var path_cross = "http://192.168.1.9/optifast-me_com/sites/all/themes/optifast/assets//images/common/cross.png"; | |
var cross_mark = "<img src='"+path_cross+"'>"; | |
/*check yes or no - replacing*/ | |
$('a, h1, h2, h3, h4, h5, p, span, .heading, div, li').html(function(index,html){ | |
return html.replace(/#yes/g , tick_mark); | |
}); | |
$('a, h1, h2, h3, h4, h5, p, span, .heading, div, li').html(function(index,html){ | |
return html.replace(/#no/g , cross_mark); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment