Karol Bagh - GS Foundation Course - 16 January, 6PM: This Just in
Karol Bagh - GS Foundation Course - 16 January, 6PM: This Just in
UPSC Mains 2023: Paper IVUPSC Mains 2023: Paper IIIUPSC Mains 2023: Paper IIUPSC Mains 2023: Paper I
UPSC Mains 2023: Essay Paper
close
//
Home
Blogs
Classroom Programme
Interview Guidance
Online Programme
Drishti Store
DLP
Language: ENहिंदी
Search
RSS
Cart
Classroom
Menu
About us
General Introduction
Drishti - The Vision Foundation
Drishti Publications
Drishti Media
Managing Director
Infrastructure
Prelims
About Civil Services
Syllabus & Strategy
UPSC Prelims Syllabus
GS Prelims Strategy
Prelims Analysis
Previous Years Papers
GS Paper-I (Year Wise)
GS Paper-I (Subject Wise)
CSAT
CSAT Strategy
CSAT MCQs
Previous Years Papers
Prelims Special
Sambhav – 2024
PT Sprint 2023
Sambhav – 2023
Path To Prelims
60 Steps To Prelims
Prelims Refresher Programme 2020
PT Sprint 2022
UPSC CSE Results
Practice Quiz
Daily Editorial Based Quiz
Monthly Editorial Quiz Consolidation
Path To Prelims
60 Steps To Prelims
CA Quiz Consolidation
Current Affairs
State PCS Quiz
Previous Year Papers
Economic Survey
Weekly Revision MCQs
Down To Earth
Yojana / Kurukshetra
NCERT BOOKS
CSAT
Mains & Interview
Optional Subjects
Mains Special
Sambhav – 2024
Mains Marathon 2023
Sambhav – 2023
Mains Marathon 2022
Be MAINS Ready
2021
2020
2019
Mains Syllabus & Strategy
Mains GS Syllabus
Mains GS Strategy
Mains Answer Writing Practice
Essay
Essay Strategy
Fodder For Essay
Model Essays
Previous Years Papers
Ethics
Ethics Strategy
Ethics Case Studies
Engage in Ethics
Ethics Previous Years Q&As
Mains Previous Years
Papers By Years
Papers By Subject
Mains Solved Papers
Papers By Years
Papers By Subject
Personality Test
Interview Strategy
Interview Guidance Programme
UPSC CSE Results
Current Affairs
Daily News & Editorial
Daily CA MCQs
Weekly Revision MCQs
Sansad TV Discussions
Monthly CA Consolidation
Monthly Editorial Consolidation
Monthly MCQ Consolidation
Monthly Editorial Quiz Consolidation
Drishti Specials
Inspirational Icons
Manthan
Sambhav
2024
2023
To The Point
Infographics and Maps
Important Institutions
Learning Through Maps
PRS Capsule
Summary Of Reports
Gist Of Economic Survey
Study Material
NCERT Books
NIOS Study Material
IGNOU Study Material
Test Series
UPSC
Prelims Test Series
Mains Test Series
BPSC
Prelims Test Series
Mains Test Series
UPPCS
Prelims Test Series
Mains Test Series
RAS/RTS
Prelims Test Series
Mains Test Series
MPPSC
Prelims Test Series
Mains Test Series
HPSC
Prelims Test Series
Mains Test Series
Other Competitive Exams
CAPF
EPFO
State PCS
Bihar
Chhattisgarh
Rajasthan
Uttar Pradesh
Haryana
Jharkhand
Uttarakhand
Madhya Pradesh
Videos
Important Institutions
Daily Editorial Analysis
YouTube PDF Downloads
Mindmap For UPSC
Daily Current Affairs
Science & Tech
International Relations
Indian Culture & Historical Events
Polity & Nation
Economic Development
Ecology & Environment
Weekly Practice Questions
Important Government Schemes
Strategy By Toppers
Ethics - Definition & Concepts
Mastering Mains Answer Writing
Places in News
UPSC Mock Interview
IFoS Mock Interview
PCS Mock Interview
UPPSC
BPSC
Interview Insights
Prelims 2019
Study Plan
Product Promos
Quick Links
Drishti Store
close
Blog
Achievers Corner
Topper's Interview
Prelims
Current Affairs
Drishti Specials
To The Point
Mind Map
Important Institutions
Learning Through Maps
PRS Capsule
Summary Of Reports
Gist Of Economic Survey
Study Material
NCERT Books
NIOS Study Material
IGNOU Study Material
Yojana & Kurukshetra
State PCS
Bihar
Chhatisgarh
Rajasthan
Uttar Pradesh
Haryana
Jharkhand
Uttrakhand
Madhya Pradesh
Test Series
Videos
Important Institutions
Daily Editorial Analysis
YouTube PDF Downloads
Strategy By Toppers
Ethics - Definition & Concepts
Mastering Mains Answer Writing
Places in News
UPSC Mock Interview
IFoS Mock Interview
PCS Mock Interview
Interview Insights
Important Government Schemes
Prelims 2019
Study Plan
Product Promos
Drishti Store
Sambhav-2023
Home
Sambhav-2023
Show Menu
Day 49
Question 1: Analyze the various forms of people's resistance against British rule in India prior to
the 1857 rebellion. What were the effect of these movements? (250 Words)
Question 2: Examine the causes and consequences of revolt of 1857? Do you think this revolt was
a first Independence movement of India. Discuss. (250 Words)
Answer 1
Approach
Briefly introduce the people's resistance against British rule in India prior to the 1857
rebellion.
Discuss the factor behind these movements with examples and challenges & effect of
these movements.
Conclude suitably
Introduction
There were many incidents before the 1857 revolt that indicated all was not well and that
there was a building resentment against the alien rule. This resentment manifested itself in
several bouts of resistance by different groups of people in different regions of India.
people’s resistance against the British rule, encompasses the revolt by several sections of
the Indian society who were affected by the alien rule like the peasants, artisans, tribals,
ruling classes (active or dispossessed), military personnel (those under the Company as
well as the demobilised soldiers of ex-rulers), religious leaders (Hindu and Muslim), etc.,
fought for the protection of their interests, at times separately and at times together.
Body
People’s resistance took three broad forms: civil rebellions, tribal uprisings, and
peasant movements.
Colonial land revenue settlements, heavy burden of new taxes, eviction of peasants from
their lands, and encroachments on tribal lands.
Exploitation in rural society coupled with the growth of intermediary revenue collectors,
tenants, and moneylenders.
Expansion of revenue administration over tribal lands, leading to the loss of tribal people’s
hold over agricultural and forest land.
Promotion of British manufactured goods, heavy duties on Indian industries, especially
export duties, leading to devastation of Indian handloom and handicraft industries.
Destruction of indigenous industry leading to migration of workers from industry to
agriculture, increasing the pressure on land/agriculture.
Civil Uprisings: Sanyasi Revolt (1763–1800): The disastrous famine of 1770 and the
harsh economic order of the British compelled a group of sanyasis in Eastern India to fight
the British yoke. These sanyasis were joined by a large number of dispossessed small
zamindars, disbanded soldiers, and rural poor. Anandamath, a semi-historical novel by
Bankim Chandra Chattopadhyay, is based on the Sanyasi Revolt.
Tribal Revolts: Jungle Mahal Revolt or the Chuar Uprising Jungle–or Jungal–Mahals is
the name given to an indefinite administrative unit lying between the Chota Nagpur and
the plains of Bengal.
Chuar held their lands under a kind of feudal tenure, but were not strongly attached
to the soil, being always ready to change from farming to hunting, at the bidding of
their jungle chiefs or zamindars.
One could say there was a clash of ways of life. The rebels had so far been living in
an agrarian society, in a closed community. The intrusion by colonial forces into
their ladnds exposed them to a new situation which upset their way of life. Also,
they were not prepared to accept the outsiders (or non-Adivasis). (The term ‘Chuar’
is considered derogatory by some historians who call this the Revolt of the Jungle
Mahal, instead.)
Peasant Movements: Moplah Uprisings - Hike in revenue demand and reduction of
field size, coupled with the oppression of officials, resulted in widespread peasant unrest
among the Moplahs of Malabar.
These uprisings drew a large number of participants but were, in fact, localised and
occurred at different times in different regions.
They mostly arose out of local grievances.
The leadership was semi-feudal in character, backwardlooking, traditional in outlook, and
their resistance did not offer alternatives to the existing social set-up.
If many of these revolts seemed similar to one another in wanting to oust the alien rule, it
was not because of some ‘national’ impulse or common effort, but because they were
protesting against conditions that were commoon to them.
These rebellions were centuries-old in form and ideological / cultural content.
Some of the grievances of the tribals and peasent were rcognised and addressed. Like: The
Paika Rebellion succeeded in getting large remissions of arrears, reductions in
assessments, suspension of the sale of the estates of defaulters at discretion.
Followed by the Assam movement - Company handed over Upper Assam to
Maharaja Purandar Singh Narendra and part of the kingdom was restored to the
Assamese king.
After the Santhal Revolt of 1855-56 that the Santhal Pargana was created out of the
districts of Bhagalpur and Birbhum. The pargana was to have special laws within it.
Britisher used the policy of divide and rule on the basis of caste, creed and locations.,
The autonomous areas of the north-eastern and in other areas were followed by the similar
movement to .
Conclusion
The revolt of 1857 was the aggregation of these small revolt, mutiny and skirmish which called as
a major ‘Revolt’, which was a product of the character and policies of colonial rule after 1757, and
after which noteworthy changes took place in the British policy of ruling over India.
Answer 2
Approach
Briefly introduce about the revolt of 1857.
Examine the causes and consequences of revolt of 1857. Discuss whether the revolt was
first independence movement of India.
Conclude suitably
Introduction
The Revolt of 1857, also known as the Indian Rebellion of 1857 or the Sepoy Mutiny, was a major
uprising in India against British rule. It is considered one of the first and most significant
movements for independence in India's history.
Body
Discontent among the sepoys: The sepoys were unhappy with their low pay, poor living
conditions, and lack of opportunities for promotion (not eligible for king’s commission).
They were also resentful of the cultural and racial superiority that was often exhibited by
eEast India Company (EIC) officials.
Oppressive policies of the EIC: The EIC had implemented a range of policies that were
unpopular among the Indian population, including the Doctrine of Lapse (in case of Jhansi),
which allowed the EIC to annex the territories of Indian princes who died without a male
heir.
This policy was seen as a threat to the rights and privileges of the Indian nobility.
The takeover of Avadh/Oudh on the ground of mismanagement.
Economic exploitation: The EIC was heavily involved in the exploitation of India's natural
resources and the exploitation of the Indian people. This included high taxes and the forced
cultivation of opium, which was exported to China.
Social and cultural factors: The EIC had introduced various social and cultural reforms,
such as the prohibition of sati and the promotion of western education, which were seen as
a threat to traditional Indian values and customs.
Dissolution of the East India Company: The EIC was replaced by the British Crown,
which took direct control of India and established the British Raj.
Annexation of princely states: The revolt led to the annexation of several princely
states by the British. These states, which had previously enjoyed a certain degree of
autonomy, were brought under the direct control of the British Raj.
End of the Mughal Empire: The last Mughal emperor, Bahadur Shah II, was exiled to
Rangoon (now Yangon) in present-day Myanmar and prince was shot dead on the spot by
the English Army.
Changes in British policy: The revolt led to a reevaluation of British policy in India and
the introduction of several reforms. These reforms included the appointment of Indian
officials to high-ranking positions in the administration, the establishment of a system of
public education, and the introduction of measures to improve the living conditions of the
Indian people.
Impact on the freedom struggle: The Revolt of 1857 is often seen as the first step in
India's struggle for independence from British rule. It was a major turning point in India's
history and inspired future generations of freedom fighters to continue the fight for
independence.
Changes in the nature of the British Raj: The British Raj became more interventionist
and began to implement policies aimed at modernizing and "Westernizing" India.
Conclusion
It inspired future generations of freedom fighters and contributed to the shift in the nature of the
British Raj, eventually, it leads to the freedom struggle of India on a more organized, peaceful and
comprehensive national wide scale.
Print PDF
/** * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO
INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS. * LEARN WHY DEFINING THESE VARIABLES IS
IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/ var disqus_config =
function () { this.page.url = https//www.drishtiias.com/sambhav-daily-answer-writing-practice/papers/2023
/various-forms-resistance-british-rule-india-prior-rebellion-movements-consequences-revolt-revolt-first-
independence-movement-india-gspaper1-history/1000/about-us/general-introduction/print/print/print //
Replace PAGE_URL with your page's canonical URL variable this.page.identifier = '' // Replace
PAGE_IDENTIFIER with your page's unique identifier variable }; (function() { // DON'T EDIT BELOW THIS
LINE var d = document, s = d.createElement('script'); s.src = 'https://drishti-english.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date()); (d.head || d.body).appendChild(s); })(); Please enable
JavaScript to view the comments powered by Disqus.
More Links
Mains Strategy
Blog
EStore
Be Mains Ready PDF
'+title+'
' ).insertAfter( ".content .prog" ); } $('#articlemsg').html('Article has been added in your progress
section'); $('.fixbtn.progress').toggleClass('open'); } else if(data=='already') { $('#articlemsg').html('This
article is already exist in your progress section.'); } else if(data=='login') { $('#articlemsg').html('Please
login to send this article into progress.'); } else { $('#articlemsg').html('Oops! something went wrong,
Please try again'); } }, error: function(error,errortype,errorstatus){ alert(errortype); } }); });
$('#sendtobookmark').click(function(e){ var article=$('#article').val(); var title = $('#articletitle').val(); var
url = "https://www.drishtiias.com/sambhav-daily-answer-writing-practice/papers/2023/various-forms-resist
ance-british-rule-india-prior-rebellion-movements-consequences-revolt-revolt-first-independence-
movement-india-gspaper1-history/1000/about-us/general-introduction/print/print/print"; $.ajax({ type:
"POST", url: "https://www.drishtiias.com//articles/progress", data:
'article='+article+'&type=1&articletitle='+title+'&url='+encodeURIComponent(url), success:
function(data){ if(data=='success'){ if($('.bookmarklist').length){ $('.bookmarklist').prepend('
'); } else { $('.message').hide(); $( '
'+title+'
'+title+'
' ).insertAfter( ".content .bookm" ); } $('#articlemsg').html('Article has been added in your bookmark
section'); $('.fixbtn.bookmark').toggleClass('open'); } else if(data=='already') { $('#articlemsg').html('This
article is already exist in your bookmark section.'); } else if(data=='login') {
$('#sendtobookmark').addClass('popup'); //$('#articlemsg').html('Please login to send this article into
progress.'); } else { $('#articlemsg').html('Oops! something went wrong, Please try again'); } }, error:
function(error,errortype,errorstatus){ alert(errortype); } }); }); $(document).ready(function(){ //$('.video-
slide').slick(); $('.video-slide').slick({ autoplay: true, arrows: false, dots: false, autoplaySpeed:7000 }); });
function showmessage(){ $(".ui-state-default").on("mouseenter", function() { var dayprefix='';
if(parseInt($(this).text())
= 1) { clearInterval(fadeInInterval); } else { opacity += 0.1; form.style.opacity = opacity; } }, 20); //
Adjust the interval as needed for the desired speed // Add click event listener to document to close form
when clicking outside document.addEventListener("click", closeFormOnClickOutside); } function
closeForm() { var form = document.getElementById("myForm"); var opacity = 1; // Gradually decrease
opacity to 0 var fadeOutInterval = setInterval(function () { if (opacity
screen_width_resize_before){ //Zoom out if(current_location > screen_middle){ box.style.left =
(screen_width_resize_after-xx) + 'px'; } else { box.style.left = x + 'px'; } } else { //Zoom in
if(current_location > screen_middle){ box.style.left = (screen_width_resize_after-xx) + 'px'; } else {
box.style.left = x + 'px'; } } var screen_width_resize_before = screen_width_resize_after; });
document.addEventListener('scroll',(event) => { var box_top=parseInt(box.style.top, 10); var
window_height=parseInt(window.innerHeight, 10); if((box_top >= window_height) || (box_top
screen_middle){ box.style.left = (screen_width-xx) + 'px'; } else { box.style.left = x + 'px'; } box.style.top
= (window_height*0.5)+'px'; } }, { passive: true } ); $('.float-plus').draggable(); $(".float-
plus").css("position", "fixed"); $(".float-plus").css("z-index", "999"); $('.float-plus').click(function(){
show_social_float_icons(); }); var box = document.getElementById('float-plus'); $('.float-
plus').mousedown(function(){ const body = document.body; box.style.transition = "all 0s ease 0s";
body.style.overflow = "hidden"; body.style.pointerEvents = "auto"; }); $('.float-plus').mouseup(function(){
const body = document.body; body.style.overflow = "auto"; body.style.pointerEvents = "auto";
box.style.transition = "all 1s ease 0s"; var screen_width = window.innerWidth; var screen_width =
parseInt(screen_width, 10) var current_location = box.style.left; var current_location =
parseInt(current_location, 10) var screen_middle = (screen_width/2); var xx = (screen_width*0.04); var x
= (screen_width*0.009); if(current_location > screen_middle){ box.style.left = (screen_width-xx) + 'px'; }
else { box.style.left = x + 'px'; } }); // For MOBILE TOUCH - DRAGGABLE
box.addEventListener('touchstart', function(e) { box.style.transition = "all 0s ease 0s"; });
box.addEventListener('touchmove', function(e) { e.preventDefault(); box.style.transform =
"translate(-50%, -50%)"; var touchLocation = e.targetTouches[0]; box.style.left = (touchLocation.pageX-
window.scrollX) + 'px'; box.style.top = (touchLocation.pageY-window.scrollY) + 'px'; });
box.addEventListener('touchend', function(e) { box.style.transition = "all 1s ease 0s"; var screen_width =
screen.width; var screen_width = parseInt(screen_width, 10) var current_location = box.style.left; var
current_location = parseInt(current_location, 10) var screen_middle = (screen_width/2); var xx =
(screen_width*0.05); var x = (screen_width*0.05); if(current_location > screen_middle){ box.style.left =
(screen_width-xx) + 'px'; } else { box.style.left = x + 'px'; } }); function remove_social_float_icons() {
$(".float-fb").animate({ top: "-=8%", }, 500 ); setTimeout(function(){ $( ".float-fb" ).hide("slow"); },500);
$(".float-tw").animate({ top: "-=16%", }, 500 ); setTimeout(function(){ $( ".float-tw" ).hide("slow"); },500);
$(".float-rs").animate({ top: "-=24%", }, 500 ); setTimeout(function(){ $( ".float-rs" ).hide("slow"); },500);
$(".float-ig").animate({ top: "-=32%", }, 500 ); setTimeout(function(){ $( ".float-ig" ).hide("slow"); },500);
$(".float-pn").animate({ top: "-=40%", }, 500 ); setTimeout(function(){ $( ".float-pn" ).hide("slow"); },500);
$(".float-wp").animate({ top: "-=48%", }, 500 ); setTimeout(function(){ $( ".float-wp" ).hide("slow");
},500); var width = (window.innerWidth > 0) ? window.innerWidth : screen.width; if(width >= 700){
$(".float-tg").animate({ top: "-=56%", }, 500 ); setTimeout(function(){ $( ".float-tg" ).hide("slow"); },500);
} setTimeout(function(){ $( ".float-cross" ).hide("slow"); },500); setTimeout(function(){ $( ".float-plus"
).show("slow"); },500); sessionStorage.setItem("remove_social_icons", "1"); } function
show_social_float_icons(){ setTimeout(function(){ $( ".float-plus" ).hide("slow"); },10);
setTimeout(function(){ $( ".float-fb" ).show("slow"); },10); setTimeout(function(){ $( ".float-tw"
).show("slow"); },10); setTimeout(function(){ $( ".float-rs" ).show("slow"); },10); setTimeout(function(){ $(
".float-ig" ).show("slow"); },10); setTimeout(function(){ $( ".float-pn" ).show("slow"); },10);
setTimeout(function(){ $( ".float-wp" ).show("slow"); },10); var width = (window.innerWidth > 0) ?
window.innerWidth : screen.width; if(width >= 700){ setTimeout(function(){ $( ".float-tg" ).show("slow");
},10); } setTimeout(function(){ $( ".float-cross" ).show("slow"); },10); $(".float-fb").animate({ top:
"+=8%", }, 500 ); $(".float-tw").animate({ top: "+=16%", }, 600 ); $(".float-rs").animate({ top: "+=24%",
}, 700 ); $(".float-ig").animate({ top: "+=32%", }, 800 ); $(".float-pn").animate({ top: "+=40%", }, 900 );
$(".float-wp").animate({ top: "+=48%", }, 1000 ); if(width >= 700){ $(".float-tg").animate({ top:
"+=56%", }, 1000 ); } sessionStorage.setItem("remove_social_icons", "0"); }
$(document).ready(function(){ var value = sessionStorage.getItem("remove_social_icons"); if(value ==
'1'){ remove_social_float_icons(); } }); // function to close the popup function closePopup() { var modal =
document.getElementById("myModal"); modal.style.display = "none"; } // function to open the popup
function openPopup() { var modal = document.getElementById("myModal"); modal.style.display =
"block"; } // Added the code - If user click on anywhere outside the popup $('body').click(function(e) {
$('#myModal').hide(); }); $('#popclose').on('click',function(e){ $('#myModal').css('display','none'); }); //
automatically open the popup on page load window.onload = openPopup; $(document).ready(function(){
if(screen.width { button.addEventListener('click', btnEvent => { // console.log(button.id); $.ajax({
method: "POST", url: "https://www.drishtiias.com/search/", data:{ 'id': button.id, 'search': search },
headers: { 'X-CSRF-TOKEN': $('[name = "_csrfToken"').val() }, success: function(result){
$('body').html(result); }, error: function(error){ console.log(error) } }) }) }) $(document).ready(function(){
//alert(getCookie('isLogin')); if(getCookie('isLogin')==1) { $('#myAccountDiv').css('display','inline-block');
$('#loginLink').css('display','none'); $('#registerLink').css('display','none');
$('#makeNoteLoginLink').css('display','inline-block'); $('#makeNoteLink').css('display','none');
$('#makeNoteOptionDiv').css('display','inline-block'); } else { $('#myAccountDiv').css('display','none');
$('#loginLink').css('display','inline-block'); $('#registerLink').css('display','inline-block');
$('#makeNoteLoginLink').css('display','none'); $('#makeNoteLink').css('display','inline-block');
$('#makeNoteOptionDiv').css('display','none'); } }); function getCookie(name) { var match =
document.cookie.match(RegExp('(?:^|;\\s*)' + name + '=([^;]*)')); return match ? match[1] : null; } var
regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/; var phonex = /^([0-9 ])+$/;
$('#newsletterfrm').submit(function(e){ var msg=true; var txtnname=$('#txtnname').val(); var
txtnemail=$('#txtnemail').val(); $('#nmsg').html(''); //$('.input-error').remove(); if(txtnname.trim()==''){
$('#txtnname').addClass('input-error'); msg=false; }else{ $('#txtnname').removeClass('input-error'); }
if(txtnemail.trim()==''){ $('#txtnemail').addClass('input-error'); msg=false; }else
if(!regex.test(txtnemail)){ $('#txtnemail').addClass('input-error'); msg=false; }else{
$('#txtnemail').removeClass('input-error'); } if(msg){ var form=$('#newsletterfrm').serialize(); $.ajax({
type: "POST", url: "https://www.drishtiias.com/pages/newsletterfrm", data: form, success: function(data){
if(data=='already'){ $('#nmsg').html('Email address already in use'); }else if(data=='add'){
$('#nmsg').html('Thank you for subscribing to our newsletter.'); $('#txtnname').val('');
$('#txtnemail').val(''); }else{ $('#nmsg').html('Oops! something went wrong, Please try again'); }
//$('#nloader').hide(); }, error: function(error,errortype,errorstatus){ alert(errortype);
//$('#nloader').hide(); } }); } e.preventDefault(); }); $('#smsalertfrm').submit(function(e){ var msg=true;
var txtnmobile=$('#txtnmobile').val(); $('#nmmsg').html(''); //$('.input-error').remove();
if(txtnmobile.trim()==''){ $('#txtnmobile').addClass('input-error'); msg=false; }else
if(txtnmobile.trim().length!=10){ $('#txtnmobile').addClass('input-error'); msg=false; }else
if(!phonex.test(txtnmobile)){ $('#txtnmobile').addClass('input-error'); msg=false; }else{
$('#txtnmobile').removeClass('input-error'); } if(msg){ var form=$('#smsalertfrm').serialize();
//$('#nmloader').show(); $.ajax({ type: "POST", url: "https://www.drishtiias.com/pages/smsalertfrm", data:
form, success: function(data){ if(data=='already'){ $('#nmmsg').html('Phone number already in use');
}else if(data=='add'){ $('#nmmsg').html('Thank you for subscribing to our SMS Alerts.');
$('#txtnmobile').val(''); }else{ $('#nmmsg').html('Oops! something went wrong, Please try again'); }
//$('#nmloader').hide(); }, error: function(error,errortype,errorstatus){ alert(errortype);
//$('#nmloader').hide(); } }); } e.preventDefault(); }); $('#subscriptionfrm').submit(function(e){ var
msg=true; var txtnname=$('#name').val(); var txtnemail=$('#emailaddress').val(); var
txtnmobile=$('#phone').val(); $('#contactmsg').html(''); //$('.input-error').remove();
if(txtnname.trim()==''){ $('#name').addClass('input-error'); msg=false; }else{
$('#name').removeClass('input-error'); } if(txtnemail.trim()==''){ $('#emailaddress').addClass('input-
error'); msg=false; }else if(!regex.test(txtnemail)){ $('#emailaddress').addClass('input-error'); msg=false;
}else{ $('#emailaddress').removeClass('input-error'); } if(txtnmobile.trim()==''){
$('#phone').addClass('input-error'); msg=false; }else if(txtnmobile.trim().length!=10){
$('#phone').addClass('input-error'); msg=false; }else if(!phonex.test(txtnmobile)){
$('#phone').addClass('input-error'); msg=false; }else{ $('#phone').removeClass('input-error'); }
if($('#dailyupdates').prop("checked") == false && $('#examnewsletter').prop("checked") == false &&
$('#fullnewsletter').prop("checked") == false && $('#sms').prop("checked") == false) {
$('#contactmsg').css('display','block'); $('#contactmsg').addClass('error'); $('#contactmsg').html('No
option selected, please select at least one option.'); msg=false; } if(msg){ $('.loader').css('display','block');
var form=$('#subscriptionfrm').serialize(); $.ajax({ type: "POST", url:
"https://www.drishtiias.com/subscription", data: form, success: function(data){
$('.loader').css('display','none'); if(data=='success'){ $('#contactmsg').css('display','block');
$('#contactmsg').removeClass('error'); $('#contactmsg').html('Thank you for subscribing to our
subscription. You will hear from us soon.'); $('#name').val(''); $('#emailaddress').val(''); $('#phone').val('');
}else{ $('#contactmsg').css('display','block'); $('#contactmsg').addClass('error');
$('#contactmsg').html('Oops! something went wrong, Please try again'); } }, error:
function(error,errortype,errorstatus){ $('.loader').css('display','none'); alert(errortype);
//$('#nloader').hide(); } }); } e.preventDefault(); }); $('#testseriesfrm').submit(function(e){ var msg=true;
var txtnname=$('#firstname').val(); var txtnemail=$('#emailaddress').val(); var
txtnmobile=$('#phonenumber').val(); $('#contactmsg').html(''); //$('.input-error').remove();
if(txtnname.trim()==''){ $('#firstname').addClass('input-error'); msg=false; }else{
$('#firstname').removeClass('input-error'); } if(txtnemail.trim()==''){ $('#emailaddress').addClass('input-
error'); msg=false; }else if(!regex.test(txtnemail)){ $('#emailaddress').addClass('input-error'); msg=false;
}else{ $('#emailaddress').removeClass('input-error'); } if(txtnmobile.trim()==''){
$('#phonenumber').addClass('input-error'); msg=false; }else if(txtnmobile.trim().length!=10){
$('#phonenumber').addClass('input-error'); msg=false; }else if(!phonex.test(txtnmobile)){
$('#phonenumber').addClass('input-error'); msg=false; }else{ $('#phonenumber').removeClass('input-
error'); } if(msg){ $('.loader').css('display','block'); var form=$('#testseriesfrm').serialize(); $.ajax({ type:
"POST", url: "https://www.drishtiias.com/test-series-registration", data: form, success: function(data){
$('.loader').css('display','none'); //alert(data); if(data=='success'){ $('#contactmsg').css('display','block');
$('#contactmsg').removeClass('error'); $('#contactmsg').html('Thank you for choosing our test series. You
will get an email and message soon.'); $('#firstname').val(''); $('#lastname').val('');
$('#emailaddress').val(''); $('#phonenumber').val(''); }else{ $('#contactmsg').css('display','block');
$('#contactmsg').addClass('error'); $('#contactmsg').html(data); } }, error:
function(error,errortype,errorstatus){ $('.loader').css('display','none'); alert(errortype);
//$('#nloader').hide(); } }); } e.preventDefault(); }); $('.allnotes').click(function(){
$('.fixbtn.notes').removeClass('open'); $('.fixbtn.mynotes').toggleClass('open'); });
$('.mynotes,.notelist').on('click','.readmore',function(){ var noteid=$(this).attr('data-noteid');
$('#note_id').val(noteid); $.ajax({ type: "POST", url: "https://www.drishtiias.com/articles/setnote", data:
'note_id='+noteid, success: function(data){ if(data){ tinymce.get("mynote").setContent(data);
$('#mynotemsg').html(''); $('.fixbtn.notes').toggleClass('open'); }else{ alert('Oops! something went
wrong, Please try again'); } }, error: function(error,errortype,errorstatus){ alert(errortype); } }); });
$('.notelink').click(function(){ $.ajax({ type: "POST", url: "https://www.drishtiias.com/articles/removenote",
success: function(data){ if(data=='removed'){ $('#note_id').val(''); tinymce.get("mynote").setContent('');
$('#mynotemsg').html(''); $('.fixbtn.notes').toggleClass('open'); $('.fixbtn.mynotes').removeClass('open');
}else{ alert('Oops! something went wrong, Please try again'); } }, error:
function(error,errortype,errorstatus){ alert(errortype); } }); });
$('.mynotes,.notelist').on('click','.removenote',function(e){ if(confirm('Are you sure want to remove
note?')) { $('.loader').css('display','block'); var noteid=$(this).attr('data-noteid'); $.ajax({ type: "POST", url:
"https://www.drishtiias.com/articles/deletenote", data: 'note_id='+noteid, success: function(data){
$('.loader').css('display','none'); if(data=='removed'){ $('#note-list #'+noteid+',.notelist
#'+noteid).css('display','none'); }else{ alert('Oops! something went wrong, Please try again'); } }, error:
function(error,errortype,errorstatus){ $('.loader').css('display','none'); alert(errortype); } }); }
e.preventDefault(); }); $("#commentfile").change(function(){ $("#file-name").text(this.files[0].name); });
$(document).ready(function(){ $('.list-toggle').click(function(){ $('.list-category').toggleClass('active');
$(this).toggleClass('active'); $('.value').text(function(i, text){ return text === "Hide Menu" ? "Show Menu"
: "Hide Menu"; }); }); $('aside button.close').click(function(){ $('.list-category').toggleClass('active'); $('.list-
toggle').toggleClass('active'); }); $('.fixbtn .btn').click(function(){ $('.fixbtn
.btn').not(this).parents('.fixbtn').removeClass('open'); $(this).parents('.fixbtn').toggleClass('open'); });
$('.fixbtn a.close').click(function(){ $(this).parents('.fixbtn').removeClass('open'); }); $('.note-
btn').click(function(){ $('.fixbtn.notes').toggleClass('open'); }); $('.viewmore a').click(function(){
$('.hide').slideToggle('active'); $(this).text(function(i, text){ return text === "View More" ? "View Less" :
"View More"; }); }); }); $('.learning-program .subheading').click(function(){ $(this).next().slideToggle();
$(this).toggleClass('open'); }); $(document).ready(function(){ $('a.register-btn').colorbox(); });
$('.interview-slider').slick({ autoplay: true, arrows: false, dots: true });
$('#bookSession').on('click',function(e){ $.ajax({ type: "POST", data: { 'course':
$('#bookSession').data('course') }, url: "https://www.drishtiias.com/book-online-session", success:
function(json){ var obj = JSON.parse(json); if (obj.status==200) { alert(obj.message); } else {
alert(obj.message); window.location.reload(); } }, error: function(error,errortype,errorstatus){
alert(errortype); } }); e.preventDefault(); }); $(".popup").colorbox({iframe: true, innerWidth: 790,
innerHeight: 530}); if(screen.width = 500) { $("#scroll-top").addClass("show"); } else { $("#scroll-
top").removeClass("show"); } }); function showarchive(year,month,day=null){ // alert('sambhav-daily-
answer-writing-practice'); return; var
url='https://www.drishtiias.com/archives'+'/'+year+'-'+month+'-'+day; location=url;
//alert(url+'/archives/'+year+'/'+month+'/'+dat); }