One Page Rules @onepagerules - MyMiniFactory (2024)

TribesStoreFronTiersFORUMNEWCanvasThe AdventureNEWPhysical

One Page Rules @onepagerules - MyMiniFactory (2)

One Page Rules One Page Rules @onepagerules - MyMiniFactory (3)

Username: onepagerules

Get 50% discount on the whole store: www.patreon.com/onepagerules Join today and get our fully pre-supported monthly release and welcome pack (50+ models in total), plus bases and much more for only $10! Check out our website for free games: www.onepagerules.com Join our Discord community: https://d

Get 50% discount on the whole store: www.patreon.com/onepagerules Join today and get our fully pre-supported monthly release and welcome pack (50+ models in total), plus bases and much more for only $10! Check out our website for free games: www.onepagerules.com Join our Discord community: https://discord.gg/djBydgk

Read full description...

'; } $('#sendMessage').on('click',function(){ $('#result').html("").hide(); var message = $('#messagearea').val(); var captcha = $('#captchaAnswer').val(); if(message == ""){ $('#result').html(showMessage("Whoops! Message can not be empty!",'alert')).show(); return } if(captcha == ""){ $('#result').html(showMessage("Please enter to captcha code!",'alert')).show(); return } // Get some values from elements on the page: var username = 'onepagerules'; var url = "/users/message"; // Send the data using post var csrfToken = $('.csrf_token').val(); var captcha = $('#captchaAnswer').val(); $.ajax({ url: url, type: 'POST', data: { _csrf_token: csrfToken, captcha:captcha, content: message, username: username } }).done(function(data) { $('#messagearea').val(""); $('#captchaAnswer').val(""); $('#messageresult').html(showMessage(data,'success')).show(); $('#secondModal').foundation('reveal','open'); $('#captcharefresh').click(); }).fail(function(data) { $('#result').html(showMessage(data.responseJSON.error_description,'alert')).show(); }); }); }); $('.btn-message').hover(function(){ $('.btn-message i').addClass('color-mmfgreen'); }, function(){ $('.btn-message i').removeClass('color-mmfgreen'); });
  • Website
  • One Page Rules @onepagerules - MyMiniFactory (5) One Page Rules @onepagerules - MyMiniFactory (6) One Page Rules @onepagerules - MyMiniFactory (7) One Page Rules @onepagerules - MyMiniFactory (8) One Page Rules @onepagerules - MyMiniFactory (9)
    • Store (727)
    • Campaigns (2)
    • Prints (92)
    • Collections (23)
    • Followers (22,254)
    • Following (0)
    • Stories (3)
    " + "Views:" + data[i]['viewed'] + "

    " ); $( "#user_followers_list").append(div); } pageFollowers++; if ((data + '').length > 20) { fetching = false; } else { fetching = true; } }); }

    ';}$(document).on('keypress',report_form, (e) => { if(e.which == 13) { dynamicReport($(report_form)); }});$(document).on("change","#report_email",function() { if($( this ).is(':checked')) $(".email_area").show(); // checked else $(".email_area").hide(); })$(document).on("click", "#reportModal .close-reveal-modal",function() { $(report_form).find(report_result).html(""); $(report_form).find(".report_reason").val($(report_form).find(".report_reason option:first").val()); // empty reason $(report_form).find(".report_comment").val("");//empty comment area $(report_form).find(".email_area").hide(); $(report_form).find("#report_email").prop('checked', false); $(report_form).find(".email").val(""); if($(report_form).find("#captchaAnswer").length==1){ $(report_form).find("#captchaAnswer").val(""); // empty captcha answer $(report_form).find("#captcharefresh").click(); }else{ grecaptcha.reset(); }})$(document).on("click",report_form + " .report_submit",() => { dynamicReport($(report_form));})function getReasons(entity_type,entity_id,callBack) { if(!reasons){ let response = $.get( "/report/get-reasons" ); response.done( ( data ) => { reasons = data; callBack(entity_type,entity_id); }); }else{ callBack(entity_type,entity_id); }}function renderReport(entityType,entityId){ if($(report_form).length==0){ var url = "/report/show-report"; var posting = $.post( url ); var reasonEntity = reasons[entityType]; posting.done( ( data ) => { var item = $(data).clone(); $(item).find(".report_data").val(entityId); $(item).attr("data-rendered-entity",entityType); var options = reasonEntity.map((data)=>{ return ""; }) $(item).find(".report_reason").append(options); if($(report_form).length==1) $(report_form).remove(); $("#reportModal").append(item); }) }else{ let temp_entity_type = $(report_form).attr("data-rendered-entity"); if(temp_entity_type!=entityType || $(report_form).find(".report_data").val()!=entityId){ var item = $(report_form); $(item).find(".report_data").val(entityId); $(item).attr("data-rendered-entity",entityType); var reasonEntity = reasons[entityType]; var options = reasonEntity.map((data)=>{ return ""; }) $(report_form).find(".report_reason option:not(:eq(0))").remove(); $(item).find(".report_reason").append(options); if($(report_form).length==1) $(report_form).remove(); $("#reportModal").append(item); } }}$(document).on("click",".reportButton", function () { var entity_type = $(this).attr("data-entity"); var entity_id = $(this).attr("data-id"); if(!entity_id && entity_type=="Image"){ entity_id = $(".slide-prdimg-gallery div.slick-active").find("img").attr("data-id"); }else if(!entity_id && entity_type=="ThreedPrint"){ entity_type="Image"; if($(".modal-print-list-ul li").length==1){ entity_id = $(".modal-print-list-ul li").find("img").attr("data-id"); }else if($(".modal-print-list-ul li").length>1){ entity_id = $(".modal-print-list-ul div .slick-active").find("img").attr("data-id"); } } getReasons(entity_type,entity_id,renderReport);})function validateEmail(email) { var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(String(email).toLowerCase());}const dynamicReport = (form) => { //the form that is related the report is required const entity_type = $(form).attr("data-rendered-entity"); const entity_id = $(form).find(".report_data").val(); const reason_id = $(form).find(".report_reason").val(); const description = $(form).find(".report_comment").val(); const emailCheck = $(form).find("#report_email").is(':checked'); const captchaExists = $(form).find("#captchaAnswer").length; let email = $(form).find(".email").val(); let captcha= null; if(captchaExists!=1){ const g_recaptcha_response = $(form).find("#g-recaptcha-response").val(); captcha = { google_captcha : 1, g_recaptcha_response: g_recaptcha_response }; }else{ const captchaAnswer = $(form).find("#captchaAnswer").val(); if(captchaAnswer==""){ $(form).find(report_result).html(showMessage("Please enter a captcha","alert")).show(); return; } captcha = { google_captcha : 0, captcha: captchaAnswer }; } if(reason_id == null){ $(form).find(report_result).html(showMessage("Please select a Reason","alert")).show(); return; } if(entity_type == null){ $(form).find(report_result).html(showMessage("Please select a Entity Type","alert")).show(); return; } if(!emailCheck){ email = null; }else{ if(!validateEmail(email)){ $(form).find(report_result).html(showMessage("Please type a valid E-mail address","alert")).show(); return; } } const data = { description: description, entityType: entity_type, reason_id: reason_id, entity_id: entity_id, email: email }; if(captcha != null){ data['captcha'] = captcha; } //show loading before requesting post $(form).find( ".loading" ).html("One Page Rules @onepagerules - MyMiniFactory (10)"); // Send the data using patch var url = "/api/v2/report"; $.ajax({ url: url, data: JSON.stringify(data), type: "PATCH", success: ({ code, message }) => { $(form).find(".loading").html(""); if(code==200){ $(form).find(report_result).html(showMessage(message,"success")).show(); $(form).find(".report_reason").val($(form).find(".report_reason option:first").val()); // empty reason $(form).find(".report_comment").val("");//empty comment area $(form).find(".email").val(""); if(captchaExists==1){ $(form).find("#captchaAnswer").val(""); // empty captcha answer $(form).find("#captcharefresh").click(); } if(captchaExists!=1){ grecaptcha.reset(); } } else { $(form).find(report_result).html(showMessage(message,"alert")).show(); } }, error: (error) => { $(form).find(".loading").html(""); $(form).find(report_result).html(showMessage(error.error_description,"alert")).show(); } });}

    MYMINIFACTORY

    AboutHow it worksRelease LogHelp / FAQForumBlogCareersInvestor RelationsIntellectual Property

    MAKERS

    For MakersBrowse ContentPhysical MiniaturesScan The WorldThe AdventureCustomizer

    CREATORS

    Design CompetitionsBecome a Premium CreatorCreator Portal

    PARTNERS

    MuseumsAPIAdvertize with us

    Copyright, MyMiniFactory, 2024 / 2 Berners Road, Islington, London, N1 0PW, United Kingdom /Privacy Policy / /Sitemap

    One Page Rules @onepagerules - MyMiniFactory (2024)

    References

    Top Articles
    Latest Posts
    Article information

    Author: Tuan Roob DDS

    Last Updated:

    Views: 6087

    Rating: 4.1 / 5 (62 voted)

    Reviews: 93% of readers found this page helpful

    Author information

    Name: Tuan Roob DDS

    Birthday: 1999-11-20

    Address: Suite 592 642 Pfannerstill Island, South Keila, LA 74970-3076

    Phone: +9617721773649

    Job: Marketing Producer

    Hobby: Skydiving, Flag Football, Knitting, Running, Lego building, Hunting, Juggling

    Introduction: My name is Tuan Roob DDS, I am a friendly, good, energetic, faithful, fantastic, gentle, enchanting person who loves writing and wants to share my knowledge and understanding with you.