Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1082981
profile.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
profile.js
View Options
var url= '';
(function ($, Drupal, drupalSettings) {
$(".block-title").empty();
var lang = $(".lang").val();
var catname = $(".catname").val();
var address = $(".cat_address").val();
var data_th = 'รายชื่อธุรกิจในหมวด "<b style="color: #DD4B39;">'+catname+'</b>" ที่อยู่ใน <b style="color: #DD4B39;">'+address+'</b>';
var data_en = 'Business on category "<b style="color: #DD4B39;">'+catname+'</b>" at <b style="color: #DD4B39;">'+address+'</b>';
if(lang == "th") {
$(".block-title").css({'line-height':'1.75','border':'solid 1px #ddd','border-bottom':'0','background-color':'#fff'}).append(data_th);
}else{
$(".block-title").css({'line-height':'1.75','border':'solid 1px #ddd','border-bottom':'0','background-color':'#fff'}).append(data_en);
}
})(jQuery, Drupal, drupalSettings);
function print_content(){
var printContents = jQuery("#block-bootstrap-content").html();
var originalContents = document.body.innerHTML;
document.body.innerHTML = printContents;
window.print();
document.body.innerHTML = originalContents;
}
function hover_share(data){
var src = data.getAttribute('src');
var hover = src.replace("1","2");
data.setAttribute('src',hover);
}
function out_share(data){
var src = data.getAttribute('src');
var hover = src.replace("2","1");
data.setAttribute('src',hover);
}
function sendmail(obj){
var data = jQuery(obj).attr('data-value');
var data_from = jQuery(obj).attr('data-from');
var from = data_from;
var content = data;
var link = "mailto:email@address.com"
+ "?subject="+from
+ "&body="+content;
window.location.href = link;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 11:59 PM (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
193709
Attached To
rPF typ_profile
Event Timeline
Log In to Comment