j
Published On: 29 Aug, 2022 5:01 PM | Updated On: 22 Dec, 2024 5:18 PM

Dose of Metformin in Prediabetes in Indian Clinical Settings






`; $(".theContent").html(theContent); } $(document).ready(function() { //close login modal on catagory1=341 //Added by Monu at 05-01-2022 $(".commentdisabled").click(function() { alert('Please Login to add the Comment'); }); $(".submitComment").click(function() { var userImg = $("#userImg").val(); var comment = $("#comment").val(); var articleId = $("#articleId").val(); var userId = $("#userId").val(); if (comment.length<5) { alert('Please enter at least 5 characters.'); } else { $.ajax({ type: 'post', url: '/theme/post/postComment.php', data: { comment, articleId, userId }, success: function(response) { var today = new Date(); var date = today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate(); var time = today.getHours() + ":" + today.getMinutes() + ":" + today .getSeconds(); var dateTime = date + ' ' + time; // console.log(response); if (response == "success") { //alert('Comment Posted and is Under moderation'); } $("#comment").val(" "); if (userImg = " ") { $("#commentSection").append( $("
").addClass("col-md-12 p-2 m-3").append( $("
").addClass("row mt-2").append( $("
").addClass( "col-md-1 col-sm-1 col-xs-1 mt-2").append( $("").addClass('imgSize').attr("src", "https://www.medtalks.in/theme/beta-theme/img/icons/doctor1.png" )), $("
").addClass( "col-md-11 col-sm-11 col-xs-11 mt-2").append( $("
").append( $("").addClass( "text-black font-weight-bold").attr( "href", "javascript:void(0)").addClass( "text-black").html( "" ), $("").css("font-family", "italic") .addClass('text-gray float-right text-12') .html(dateTime), $("
").css("margin-bottom", "5px!important")), $("
").html(comment))))); } else { $("#commentSection").append( $("
").addClass("col-md-12 p-2 m-3").append( $("
").addClass("row mt-2").append( $("
").addClass( "col-md-1 col-sm-1 col-xs-1 mt-2").append( $("").addClass('imgSize').attr("src", "" )), $("
").addClass( "col-md-11 col-sm-11 col-xs-11 mt-2").append( $("
").append( $("").attr("href", "javascript:void(0)") .addClass( "text-black font-weight-bold").html( "" ), $("").css("font-family", "italic") .addClass('text-gray float-right text-12') .html(dateTime), $("
").css("margin-bottom", "5px!important")), $("
").html(comment))) )); } } }); } }); }); function articleShare(via) { var faqId = '2437'; var article_type = 'FAQ'; $.ajax({ type: 'post', url: '/theme/beta-theme/pages/save-share-articles.php', data: { via, faqId, article_type }, success: function(response) { //alert(response); } }); }