var MGS_WIDGET_R_PARAM_DIREC = { HORIZONTAL : { code:"h", css:"mgs_banner_h.css"}, VERTICAL : { code:"v", css:"mgs_banner_v.css"}, SP : { code:"p", css:"mgs_banner_sp.css"} }, MGS_WIDGET_R_PARAM_SIZE = { WIDTH_D : { code:"d", size:150, font:12}, WIDTH_F : { code:"f", size:120, font:10}, WIDTH_S : { code:"s", size:170, font:12}, WIDTH_L : { code:"l", size:220, font:15}, WIDTH_B : { code:"b", size:320, font:20}, HEIGHT_S : { code:"s", size:90, font:12}, HEIGHT_L : { code:"l", size:150, font:12} }, MGS_WIDGET_R_PARAM_NUM = { NUM_S : { code:"s", num:3}, NUM_M : { code:"m", num:5}, NUM_L : { code:"l", num:10} }, MGS_WIDGET_R_PARAM_MAKER = { // メーカー NANPA: {code: "1", jname: "nanpatv_day.json", pre: "pb_p_", tname: "ナンパTV"}, SHIRO: {code: "2", jname: "shiroutotv_day.json", pre: "pb_p_", tname: "シロウトTV"}, LUXU: {code: "3", jname: "luxutv_day.json", pre: "pf_e_", tname: "ラグジュTV"}, PRESTIGE: {code: "4", jname: "prestigebb_day.json", pre: "pf_e_", tname: "プレステージ"}, ORESHIRO: {code: "5", jname: "orenoshirouto_day.json", pre: "pf_e_", tname: "俺の素人"}, DOC: {code: "6", jname: "docch_day.json", pre: "pf_e_", tname: "DOC"}, SODC: {code: "7", jname: "sodch_day.json", pre: "pf_e_", tname: "SOD"}, SCUTE: {code: "8", jname: "scute_day.json", pre: "pf_e_", tname: "S-CUTE"}, ARA: {code: "9", jname: "ara_day.json", pre: "pf_e_", tname: "募集ちゃん"}, DOCU: {code: "28", jname: "documentv_day.json", pre: "pf_e_", tname: "ドキュメンTV"}, PRESTIGEPRE: {code: "29", jname: "prestigepremium_day.json", pre: "pf_e_", tname: "プレステージプレミアム"}, NAMANAMANET: {code: "30", jname: "namanamanet_day.json", pre: "pf_e_", tname: "なまなま.net"}, JACKSON: {code: "31", jname: "jackson_day.json", pre: "pf_e_", tname: "Jackson"}, MOONFORCE: {code: "32", jname: "moonforce_day.json", pre: "pf_e_", tname: "MOON FORCE"}, KUROFUNE: {code: "33", jname: "kurofune_day.json", pre: "pf_e_", tname: "黒船"}, FALENO: {code: "34", jname: "faleno_day.json", pre: "pf_e_", tname: "FALENO"}, SHIROUTOMANMAN: {code: "35", jname: "shiroutomanman_day.json", pre: "pf_e_", tname: "しろうとまんまん"}, HHH: {code: "36", jname: "uratalknouratalk_day.json", pre: "pf_e_", tname: "HHH"}, NTRNET: {code: "37", jname: "ntrnet_day.json", pre: "pf_e_", tname: "NTR.net"}, // ジャンル(配信専用素人) HBBOOBA: {code: "10", jname: "haishin_big_boobs_day.json", pre: "pf_e_", tname: "巨乳"}, HLOLI: {code: "12", jname: "haishin_loli_day.json", pre: "pf_e_", tname: "童顔"}, HGAL: {code: "13", jname: "haishin_gal_day.json", pre: "pf_e_", tname: "ギャル"}, HWIFE: {code: "14", jname: "haishin_someones_wife_day.json", pre: "pf_e_", tname: "人妻"}, HICUM: {code: "16", jname: "haishin_internal_cum_day.json", pre: "pf_e_", tname: "中出し"}, HHAMEDORI: {code: "18", jname: "haishin_pov_day.json", pre: "pf_e_", tname: "ハメ撮り"}, // ジャンル(単品) BBOOBA: {code: "19", jname: "big_boobs_day.json", pre: "pf_e_", tname: "巨乳"}, MATURE: {code: "20", jname: "mature_day.json", pre: "pf_e_", tname: "熟女"}, LOLI: {code: "21", jname: "loli_day.json", pre: "pf_e_", tname: "童顔"}, GAL: {code: "22", jname: "gal_day.json", pre: "pf_e_", tname: "ギャル"}, WIFE: {code: "23", jname: "someones_wife_day.json", pre: "pf_e_", tname: "人妻"}, SCHOOL: {code: "24", jname: "school_day.json", pre: "pf_e_", tname: "女子高生"}, ICUM: {code: "25", jname: "internal_cum_day.json", pre: "pf_e_", tname: "中出し"}, ANAL: {code: "26", jname: "anal_day.json", pre: "pf_e_", tname: "アナル"}, SHIROUTO: {code: "27", jname: "shirouto_day.json", pre: "pf_e_", tname: "素人"} }, MGS_SVR_PREFIX = 'http://www.mgstage.com/', MGS_SVR_PREFIX_HTTPS = 'https://www.mgstage.com/', MGS_SP_SVR_PREFIX = 'http://sp.mgstage.com/', MGS_WIDGET_R_CSS_PATH = MGS_SVR_PREFIX_HTTPS + 'style/common/', MGS_WIDGET_R_IMG_SVR = 'https://spimg2.mgstage.com/images/', MGS_JSONP_CALL_BACK_BASE; (function(window, document) { var strJsonp = 'mgswjsp', strCallbackBase = '_mgswjsp'; if(MGS_JSONP_CALL_BACK_BASE == undefined) { MGS_JSONP_CALL_BACK_BASE = window[strCallbackBase] = {}; } window[strJsonp] = function(param){ var min = 1, max = 10000, strUrl = 'https://www.mgstage.com/php/api/widgetr.php' strReqId = Math.floor( Math.random() * (max - min + 1) ) + min, callbackName = '_' + strReqId, elmScript = document.createElement('script'); MGS_JSONP_CALL_BACK_BASE[callbackName] = function(objData) { //
にタグでcss var blog_head = document.getElementsByTagName('head'), widget_css_Element = document.createElement('link'); widget_css_Element.setAttribute('href', MGS_WIDGET_R_CSS_PATH + param['css']); widget_css_Element.setAttribute('rel', 'stylesheet'); widget_css_Element.setAttribute('type', 'text/css'); widget_css_Element.setAttribute('media', 'screen'); blog_head[0].appendChild(widget_css_Element); switch(param['direc']) { case MGS_WIDGET_R_PARAM_DIREC.HORIZONTAL['code']: mgsWidgetRHorizontal(objData, param); break; case MGS_WIDGET_R_PARAM_DIREC.VERTICAL['code']: mgsWidgetRVertical(objData, param); break; case MGS_WIDGET_R_PARAM_DIREC.SP['code']: mgsWidgetRSp(objData, param); break; } // 縦 function mgsWidgetRVertical(parsed_data, mgs_widget_r_p) { //