Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function capitalizeFirstLetter(string) {
- return string.charAt(0).toUpperCase() + string.slice(1);
- }
- function urldecode(url) {
- return capitalizeFirstLetter(decodeURIComponent(url.replace(/\+/g, " ")));
- }
- $(function () {
- var utm='utm_term';
- if( window.location.toString().indexOf(utm +'=') != -1) {
- var term_utm=(window.location.toString().substr(window.location.toString().indexOf(utm+'=')+ utm.length+1,500))
- if( term_utm.indexOf('&') != -1) {
- term_utm=(term_utm.substr(0,term_utm.indexOf('&')));
- }
- $('#rec33152182 .t-descr span').first().html(urldecode(term_utm) + '.');
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement