Page 774 - NGTU_paper_withoutVideo
P. 774
کیتاموئژ نیون یاهدربراک و اه یروآ نف یلم سنارفنک
<button id="identifyBtn" class="icon-top-right"></button>
{% endif %}
.دریگب ار ام رظن دروم ناکم و لیاتسا ات .مینک یم هفاضا style.css هشوپ هب زین ار دک نیا
#identifyBtn{
top:90px;
right:15px;
background-image: url('information.svg');
}
رد ار رظن دروم تاعالطا دریک رارق هشقن یور هطقن ره یور سوم ینعی دنک یم راک هب عورش تیاس یور identify همکد ریز دک قبط
.دهد یم رارق ربراک رایتخا
identification = "off"
optionAdd = 1
$("#identifyBtn").click(function () {
if("on"==identification){
end_identify()
}else{
popup_identify()
}
})
function popup_identify(){
$("#identifyOptionPopup").dialog({
modal: true,
buttons: {
عورش: function() {
$( this ).dialog( "close" );
start_identify()
}
}
});
}
function end_identify(){
identification = "off"
$("#identifyBtn").css("backgroundColor", "#103c67");
}
function start_identify(){
identification = "on"
$("#identifyBtn").css("backgroundColor", "red");
}
هیال نا زا ،میشاب هتشاد اه نا زا یتاعالطا میهاوخیم هک ار یطاقن ات .مینک باختنا ار یکی هنیزگ دنچ نیب دنک یم کمک ام هب ریز دک
.مینک باختنا
{% if user.is_authenticated %}
<button id="identifyBtn" class="icon-top-right"></button>
{% endif %}
<div id="identifyOptionPopup" style="display: none;text-align: right" title="Identify">
<p>دینک باختنا یافیتنیدیآ عورش یارب ار هیال کی</p>
<div>
<select id ="layerChooseToIdentify">
<option value="ناریا یا هطقن هیال">
ناریا یا هطقن هیال
</option>