HimVani
Shimla: Himachal Pradesh University Vice-Chancellor, Sunil Kumar Gupta today inaugurated an exhibition on climate change which is jointly being organized by the British Council and department of Visual Arts, H.P. University. The two day long exhibition focuses on visual delight, as it brings together various forms of visual media to spread awareness on Climate Change. presenting a lighthearted view in climate change, the exhinition consists of 50 of the best entries of a cartoon contest on climate change, which was announced in October last year to get young people to express their understanding and concern about climate change through a creative medium. The exhibition is called, “Cartoons for Climate” and has already traveled to 8 cities in India, 2 in Sri Lanka and now comes to Shimla. The exhibition will be on display till 17th September. Speaking on the occasion, VC said that the persuasive power of visual media makes for a compelling case to be used for raising awareness and sensitizing audiences on climate change. A visually created communication like a film or an expressive caricature can inspire change. He said that there is Forum, a part of the Climate Change Project of British Council in India and Sri Lanka which aims at raising awareness and mitigating the effects of climate change in urban areas with the use of a creative mix of visual media.
// 0 &&
result.transliterations[0].transliteratedWords.length > 0) {
var res = result.transliterations[0].transliteratedWords[0];
if(callback){
return callback(ele, res);
}
ele.innerHTML = res;
}
}
});
},
getLang: function(code){
for (l in google.language.Languages) {
if(google.language.Languages[l] == code){
return l;
}
}
},
getLanguageForCode: function(code){
var lang = Transliterate.getLang(code);
if(lang){
lang = Transliterate.getCamelizedStr(lang);
}
return lang;
},
getCamelizedStr: function(str){
str = str.toLowerCase();
str = str.substring(0, 1).toUpperCase()+str.substring(1, str.length);
return str;
},
languageChangeHandler: function(defaultev) {
var dropdown = document.getElementById(‘languageDropDown’);
var selOpt = dropdown.options[dropdown.selectedIndex];
var selectedLang = selOpt.value;
if (!selectedLang.match(“Turn”)) {
Transliterate.transliterationControl.setLanguagePair(google.elements.transliteration.LanguageCode.ENGLISH, selectedLang);
Transliterate._controlDiv.title = ‘Type in ‘+selOpt.title + ‘. Click on the checkbox to turn on/off the language setting.’;
if(!defaultev){
Transliterate.setCookie(‘Transliterate_LANG’, selectedLang);
}
Transliterate.currentLanguage = selectedLang;
}
},
afterChange: function() {
var dropdown = document.getElementById(‘languageDropDown’);
var selOpt = dropdown.options[dropdown.selectedIndex];
var selectedLang = selOpt.value;
if (selectedLang.match(“Turn”)) {
for (var i = 0; i < dropdown.options.length; i++) {
if (dropdown.options[i].value == Transliterate.currentLanguage) {
dropdown.selectedIndex = i;
var lang = dropdown.options[i].text;
}
}
if (document.getElementById("checkboxId").checked) {
document.getElementById("checkboxId").checked = false;
document.getElementById("languageDropDown").style.background = "#CDCDCD";
document.getElementById("languageDropDown").style.color = "#8A8384";
document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
document.getElementById("languageDropDown").style.fontWeight = "normal";
dropdown.options[0].text = "Turn " + lang + " ON";
dropdown.options[0].title = "Turn " + lang + " ON";
dropdown.options[0].value = "Turn " + lang + " ON";
} else {
document.getElementById("checkboxId").checked = true;
document.getElementById("languageDropDown").style.background = "#92C166";
document.getElementById("languageDropDown").style.color = "#000000";
document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
document.getElementById("languageDropDown").style.fontWeight = "bold";
dropdown.options[0].text = "Turn " + lang + " OFF";
dropdown.options[0].title = "Turn " + lang + " OFF";
dropdown.options[0].value = "Turn " + lang + " OFF";
}
Transliterate.transliterationControl.toggleTransliteration();
Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled());
} else {
if (!document.getElementById("checkboxId").checked) {
document.getElementById("checkboxId").click();
} else {
if (!this.is_local) {
var currLang = dropdown.options[dropdown.selectedIndex].text;
if (document.getElementById("checkboxId").checked) {
dropdown.options[0].text = "Turn " + currLang + " OFF";
dropdown.options[0].title = "Turn " + currLang + " OFF";
dropdown.options[0].value = "Turn " + currLang + " OFF";
} else {
dropdown.options[0].text = "Turn " + currLang + " ON";
dropdown.options[0].title = "Turn " + currLang + " ON";
dropdown.options[0].value = "Turn " + currLang + " ON";
}
}
}
}
},
toggleLanguage: function(event) {
var dropdown = document.getElementById('languageDropDown');
if (event.target.innerHTML == dropdown.options[dropdown.selectedIndex].text) {
if (!document.getElementById("checkboxId").checked) {
document.getElementById("checkboxId").click();
}
}
},
_controlDiv: undefined,
createComponents: function(){
// HRef
var controlHTML = "
”
““+
““+
“”+
““+
“
“+
”
“+
“
“;
var dDiv = document.createElement(‘div’);
dDiv.innerHTML = controlHTML;
Transliterate._controlDiv = dDiv.firstChild;
//document.importNode(Transliterate._controlDiv, true);
document.body.appendChild(Transliterate._controlDiv);
Transliterate._controlDiv.dimension = {‘width’: Transliterate._controlDiv.offsetWidth, ‘height’: Transliterate._controlDiv.offsetHeight};
if (this.is_local) {
Transliterate._controlDiv.style.display = ‘block’;
} else {
Transliterate._controlDiv.style.display = ‘none’;
}
},
parentWin: undefined,
performAction: function(){
google.load(‘language’, “1”);
google.load(“elements”, “1”, {
packages: [“transliteration”],
});
google.setOnLoadCallback(Transliterate.init);
},
setCookie: function(cookieName, cookieValue, nDays) {
var today = new Date();
var expire = new Date();
if (nDays==null || nDays==0) nDays=30;
expire.setTime(today.getTime() + 3600000*24*nDays);
document.cookie = cookieName+”=”+escape(cookieValue)
+ “;expires=”+expire.toGMTString();
},
getCookie: function(name) {
var theCookies = document.cookie.split(/[; ]+/);
for (var i = 0 ; i < theCookies.length; i++) {
var aName = theCookies[i].substring(0,theCookies[i].indexOf('='));
if (aName == name) {
var c = theCookies[i];
var index = c.lastIndexOf('=');
c = c.substring(index+1, c.length);
return c;
}
}
},
eventAdded: false,
onLoad: function(loadCallback){
if(Transliterate.loaded){
return loadCallback();
}
document.write = function(scr){
var d = document.createElement('div');
d.innerHTML = scr;
document.body.appendChild(d.firstChild);
};
var callBack = function(){
Transliterate.addStyles();
Transliterate.createComponents();
Transliterate.performAction();
loadCallback();
};
Transliterate.addScript('http://www.google.com/jsapi', callBack);
Transliterate.loaded = true;
},
addEvents: function(){
if(Transliterate.eventAdded){
return;
}
Transliterate.eventAdded = true;
document.addEventListener('mousedown', Transliterate.handleEvent, true);
document.addEventListener('focus', Transliterate.handleEvent, true);
/*document.addEventListener('blur', function(ev){
var tar = ev.target;
tar.removeEventListener('click', Transliterate.handleEvent, false);
tar.removeEventListener('focus', Transliterate.handleEvent, false);
}, false);*/
},
autoIdCntr: 1,
isEditableElement: function(el){
var tag = el.tagName;
if(!tag || el.disabled == true || el.readOnly == true){
return false;
}
if(tag.toLowerCase() == 'textarea'){
return true;
}
if(Transliterate.supportTextBoxes && tag.toLowerCase() == 'input' && el.type.toLowerCase() == 'text'){
return true;
}
if(tag.toLowerCase() == 'div' && el.contentEditable.toLowerCase() == 'true'){
return true;
}
if(tag.toLowerCase() == 'iframe'){
var iframedoc = el.contentWindow.document;
if(iframedoc.designMode.toLowerCase() == "on" || iframedoc.body.contentEditable.toLowerCase() == "true") {
return true;
}
}
},
handleEvent: function(event){
try{
// HRef
if (this.is_local) {
var el = document.getElementById('myTextarea');
} else {
var el = event.target;
}
if(Transliterate.isEditableElement(el)){
var lazyLoader = function(){
Transliterate.lazyLoadObjects(el);
};
var initer = function(){
Transliterate.checkAndWaitTillInit(lazyLoader);
};
Transliterate.onLoad(initer);
return;
}
if(!Transliterate.isCntrlsDiv(el)){
Transliterate.showControl(el, true);
}
}catch(e){
}
},
waitCounter: 0,
checkAndWaitTillInit: function(callback){
try{
Transliterate.init();
}catch(e){
if(Transliterate.waitCounter == 15){
return;
}
Transliterate.waitCounter++;
var f = function(){
Transliterate.checkAndWaitTillInit(callback);
};
setTimeout(f, 200);
return;
}
callback();
},
isInTheList: function(el){
for(var i=0; i