//alert("ok")
$(function () {
var flag = true;
$(".menu span").click(function (e) {
e.preventDefault();
id = $(this).attr("href");
$(".menu span").removeClass("under");
$(this).addClass("under");
});
});
// Courses , Activity , Applicationtop Ŭ¸¯ ½Ã 5°³ ¸Þ´ºº¯°æ
$(function () {
$(".nav_menu1").click(function () {
$(".courses_nav").css("display", "block");
$(".activity_nav").css("display", "none");
$(".application_nav").css("display", "none");
$(".iframe_box").empty();
var $iframe = $('')
$(".iframe_box").append($iframe);
$("#menu_content").attr("src", "/base_1/jw/program/Courses1.php");
$("#menu_content").css({ height: "1985px" });
});
$(".nav_menu2").click(function () {
$(".courses_nav").css("display", "none");
$(".activity_nav").css("display", "block");
$(".application_nav").css("display", "none");
$(".iframe_box").empty();
var $img = $('').attr("src", "http://jwacademy.cafe24.com/base_1/img/program/activity/consulting1.jpg").css({ height: "100%" }).css({ width: "1200px" }).css({ display: "block" }).css({ margin: "auto" })
$(".iframe_box").append($img);
var $img = $('').attr("src", "http://jwacademy.cafe24.com/base_1/img/program/activity/consulting1-2.jpg").css({ height: "100%" }).css({ width: "1200px" }).css({ display: "block" }).css({ margin: "auto" })
$(".iframe_box").append($img);
//$("#menu_content").attr("src", "/base_1/jw/program/activity1.php");
//$("#menu_content").css({ height: "2000px" });
});
$(".nav_menu3").click(function () {
$(".courses_nav").css("display", "none");
$(".activity_nav").css("display", "none");
$(".application_nav").css("display", "block");
$(".iframe_box").empty();
var $iframe = $('').css({ height: "700px" })
$(".iframe_box").append($iframe);
$("#menu_content").attr("src", "/base_1/jw/program/Application1.php");
});
//¸ð¹ÙÀÏ ¸Þ´º
$(".nav_menu1_m").click(function () {
$(".courses_nav").css("display", "block");
$(".activity_nav").css("display", "none");
$(".application_nav").css("display", "none");
$(".iframe_box").empty();
var $iframe = $('')
$(".iframe_box").append($iframe);
$("#menu_content").attr("src", "/base_1/jw/program/Courses1.php");
$("#menu_content").css({ height: "3716px" });
});
$(".nav_menu2_m").click(function () {
$(".courses_nav").css("display", "none");
$(".activity_nav").css("display", "block");
$(".application_nav").css("display", "none");
$(".iframe_box").empty();
var $img = $('').attr("src", "http://jwacademy.cafe24.com/base_1/img/program/activity/consulting1.jpg").css({ height: "100%" })
$(".iframe_box").append($img);
var $img = $('').attr("src", "http://jwacademy.cafe24.com/base_1/img/program/activity/consulting1-2.jpg").css({ height: "100%" })
$(".iframe_box").append($img);
// $("#menu_content").attr("src", "/base_1/jw/program/activity1.php");
// $("#menu_content").css({ height: "3900px" });
});
$(".nav_menu3_m").click(function () {
$(".courses_nav").css("display", "none");
$(".activity_nav").css("display", "none");
$(".application_nav").css("display", "block");
$(".iframe_box").empty();
var $iframe = $('')
$(".iframe_box").append($iframe);
$("#menu_content").attr("src", "/base_1/jw/program/Application1.php");
$("#menu_content").css({ height: "300px" });
});
});
// Courses , Activity , Applicationtop Ŭ¸¯ ½Ã top box ¾ÈÀÇ ³»¿ë º¯°æ
//¸Þ´º Ŭ¸¯ ½Ã ÅؽºÆ® º¯°æ
$(function () {
$(".nav_menu").click(function () {
a = $(this).index() + 1;
//¸ÇÀŸÀÌƲ º¯°æ
$(".top_title_p").text(top_title_p[a]);
//ÁÙ±Û text 1¹ø° ÁÙ º¯°æ
$(".top_txt1").text(top_txt1[a]);
//ÁÙ±Û text 2¹ø° ÁÙ º¯°æ
$(".top_txt2").text(top_txt2[a]);
//ÁÙ±Û text 3¹ø° ÁÙ º¯°æ
$(".top_txt3").text(top_txt3[a]);
//ÁÙ±Û text 4¹ø° ÁÙ º¯°æ strong
$(".top_txt4").text(top_txt4[a]);
});
});
//¸ÇÀŸÀÌƲ º¯°æ ³»¿ë
var top_title_p = new Array();
top_title_p[1] =
"¡°SAT Á¡¼ö´Â ¸Ó¸®¿¡ ´Þ·È´Ù? SAT Á¡¼ö¸¦ ¿Ã¸®´Â µ¥¿¡´Â ÇÑ°è°¡ ÀÖ´Ù?¡±";
top_title_p[2] =
"¡°°øºÎ´Â ¾î¶»°Ôµç Çϰڴµ¥, ºñ±³°úÈ°µ¿Àº ¾î¶»°Ô ÇØ¾ß ÇÒÁö ÀüÇô °¨ÀÌ ¾È ¿Í¿ä.¡±";
top_title_p[3] =
"¡°Ã³À½ Á¢ÇÏ´Â ÇüÅÂÀÇ ÀÔ½Ã, óÀ½ ½áº¸´Â Á¾·ùÀÇ ±Û, ±âȸ´Â ´Ü ÇÑ ¹ø¡±";
//ÁÙ±Û text 1¹ø° ÁÙ º¯°æ ³»¿ë
var top_txt1 = new Array();
top_txt1[1] =
"Áö¿ø¾ÆÄ«µ¥¹Ì´Â ÀÌ·± ÀϹÝÀûÀÎ »ý°¢ÀÌ Æ²·È´Ù´Â »ç½ÇÀ» Áõ¸íÇØ¿Ô½À´Ï´Ù.";
top_txt1[2] =
"°øÀνÃÇè Á¡¼ö°¡ »óÇâÆòÁØÈ µÈ Áö±Ý, ºñ±³°úÈ°µ¿ÀÇ Á߿伺Àº Á¡Á¡ ´õ Ä¿Áö°í ÀÖ½À´Ï´Ù.";
top_txt1[3] =
"¹Ì±¹´ëÇÐ ÀÔ½Ã, ÀÔÇлçÁ¤°üÀÇ ÁÖ°üÀûÀÎ ÀÇ°ß¿¡ µû¶ó ¸ðµç °ÍÀÌ °áÁ¤µÇ´Â ÁÖ¸Ô±¸±¸ ½Ä ½Ã½ºÅÛÀ¸·Î º¸ÀÏ ¼ö ÀÖ½À´Ï´Ù.";
//ÁÙ±Û text 2¹ø° ÁÙ º¯°æ ³»¿ë
var top_txt2 = new Array();
top_txt2[1] =
"¼ö°»ý°ú ÇÔ²² ¸¸µå´Â ³ë·ÂÀÇ ¼±¼øȯ ±¸Á¶, ü°èÀûÀÎ Áö¹®º° ¡¤ ¹®Á¦À¯Çüº° Á¢±Ù, ¹®Á¦ ÃâÁ¦ ¸ÅÄ¿´ÏÁòÀÇ ¿Ïº®ÇÑ ÀÌÇØÀÇ";
top_txt2[2] = "Áö³ 10³â°£ Áö¿ø¾ÆÄ«µ¥¹ÌÀÇ ÄÁ¼³Æà ÇÁ·Î±×·¥Àº";
top_txt2[3] =
"ÇÏÁö¸¸ ÀÔÇлçÁ¤°ü Á¦µµ´Â ¼ö½Ê³â°£ ÃàÀûµÈ ¡°ºòµ¥ÀÌÅÍ¡±¸¦ ±â¹ÝÀ¸·Î ¿î¿µµÇ¹Ç·Î";
//ÁÙ±Û text 3¹ø° ÁÙ º¯°æ ³»¿ë
var top_txt3 = new Array();
top_txt3[1] =
"3¹ÚÀÚ¿Í ±â°èÀûÀÎ ¹®Á¦Ç®À̹ýÀÇ Ã¼È¸¦ ÅëÇØ ÃִܱⰣ, ÃÖ°íÈ¿°úÀÇ SAT ¼ö¾÷À» ÁøÇàÇÕ´Ï´Ù.";
top_txt3[2] =
"ºÐ¾ß¸¦ ³Ñ³ªµå´Â âÀÇÀû Á¢±ÙÀ¸·Î ¾ðÁ¦³ª ÇÑ ´Ü°è ¾Õ¼°¡¸ç Áö¿øÀÚÀÇ º¯º°·ÂÀ» Å°¿ö¿Ô½À´Ï´Ù.";
top_txt3[3] =
"½Ã½ºÅÛÀ» ¾ó¸¶³ª Àß ÀÌÇØÇÏ°í ±× À§¿¡ ÁÖ°üÀûÀÎ ¿ä¼Ò±îÁö ´õÇÒ ¼ö ÀÖ´À³Ä°¡ ¼º°øÀÇ ÇÙ½ÉÀÔ´Ï´Ù.";
//ÁÙ±Û text 4¹ø° ÁÙ º¯°æ ³»¿ë strong
var top_txt4 = new Array();
top_txt4[1] =
"SAT Áغñ¿¡ ÇÊ¿äÇÑ °ÍÀº °øºÎ°¡ ¾Æ´Ñ ÈÆ·ÃÀ̸ç, ü°èÀûÀÎ ´Ü°èº° ÈÆ·Ã °úÁ¤Àº Áö¿ø¾ÆÄ«µ¥¹ÌÀÇ ÀÚ¶ûÀÔ´Ï´Ù.";
top_txt4[2] =
"¼ö°»ý ¸ÂÃã 1:1 ÇÁ·ÎÁ§Æ®, °¡Àå È¿°úÀûÀÎ ¼Ö·ç¼ÇÀ» Á¦°øÇÏ°Ú½À´Ï´Ù.";
top_txt4[3] =
"Áö¿ø¾ÆÄ«µ¥¹Ì°¡ ´Ü ÇÑ ¸íÀÇ Áö¿øÀÚ¸¦ À§ÇÑ ´Ü ÇϳªÀÇ ¿Ïº®ÇÑ Áö¿ø¼¸¦ ¾à¼ÓÇÕ´Ï´Ù.";
//ÅǸ޴º ¸Þ´º 5°³ µé¾î°¡´Â °ø°£ - Ŭ¸¯ÇÑ ¸Þ´º ¹é±×¶ó¿îµå ÀÔÈ÷±â/¹é±×¶ó¿îµå ÃʱâÈ
$(function () {
//ÃÖÃÊ¿¡ Çѹø ÀÐÀ½
var flag = true;
$(".courses_menu").click(function (e) {
//±âº»À̺¥Æ® Á¦°Å
e.preventDefault();
//id°ª ±¸Çϱâ
id = $(this).attr("href");
//¸Þ´º ÃʱâÈ(°øÅë)==========================================
$(".courses_nav_box li").removeClass("active");
$(this).addClass("active");
});
$(".nav_menu1").click(function (e) {
e.preventDefault();
id = $(this).attr("href");
$(".courses_nav_box li").removeClass("active");
$("#cou_menu1").addClass("active");
});
$(".nav_menu1_m").click(function (e) {
e.preventDefault();
id = $(this).attr("href");
$(".courses_nav_box li").removeClass("active");
$("#cou_menu1").addClass("active");
});
$(".activity_menu").click(function (e) {
//±âº»À̺¥Æ® Á¦°Å
e.preventDefault();
//id°ª ±¸Çϱâ
id = $(this).attr("href");
//¸Þ´º ÃʱâÈ(°øÅë)==========================================
$(".activity_nav_box li").removeClass("active");
$(this).addClass("active");
});
$(".nav_menu2").click(function (e) {
e.preventDefault();
id = $(this).attr("href");
$(".activity_nav_box li").removeClass("active");
$("#act_menu1").addClass("active");
});
$(".nav_menu2_m").click(function (e) {
e.preventDefault();
id = $(this).attr("href");
$(".activity_nav_box li").removeClass("active");
$("#act_menu1_m").addClass("active");
});
$(".application_menu").click(function (e) {
//±âº»À̺¥Æ® Á¦°Å
e.preventDefault();
//id°ª ±¸Çϱâ
id = $(this).attr("href");
//¸Þ´º ÃʱâÈ(°øÅë)==========================================
$(".application_nav_box li").removeClass("active");
$(this).addClass("active");
});
$(".nav_menu3").click(function (e) {
e.preventDefault();
id = $(this).attr("href");
$(".application_nav_box li").removeClass("active");
$("#app_menu1").addClass("active");
});
$(".nav_menu3_m").click(function (e) {
e.preventDefault();
id = $(this).attr("href");
$(".application_nav_box li").removeClass("active");
$("#app_menu1").addClass("active");
});
});
//ÅǸ޴º ¸Þ´º 5°³ µé¾î°¡´Â °ø°£ - Ŭ¸¯ ½Ã html ºÒ·¯¿À±â
//Courses
$(function () {
$("#cou_menu1").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Courses1.php");
$("#menu_content").css({ height: "1985px" });
});
$("#cou_menu2").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Courses2.php");
$("#menu_content").css({ height: "1985px" });
});
$("#cou_menu3").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Courses3.php");
$("#menu_content").css({ height: "1785px" });
});
$("#cou_menu4").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Courses4.php");
$("#menu_content").css({ height: "1335px" });
});
$("#cou_menu5").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Courses5.php");
$("#menu_content").css({ height: "1335px" });
});
});
//Act
$(function () {
$("#act_menu1").click(function () {
$(".iframe_box").empty();
var $img = $('').attr("src", "http://jwacademy.cafe24.com/base_1/img/program/activity/consulting1.jpg").css({ height: "100%" }).css({ width: "1200px" }).css({ display: "block" }).css({ margin: "auto" })
$(".iframe_box").append($img);
var $img = $('').attr("src", "http://jwacademy.cafe24.com/base_1/img/program/activity/consulting1-2.jpg").css({ height: "100%" }).css({ width: "1200px" }).css({ display: "block" }).css({ margin: "auto" })
$(".iframe_box").append($img);
});
$("#act_menu2").click(function () {
$(".iframe_box").empty();
var $img = $('').attr("src", "http://jwacademy.cafe24.com/base_1/img/program/activity/consulting2.jpg").css({ height: "100%" }).css({ width: "1200px" }).css({ display: "block" }).css({ margin: "auto" })
$(".iframe_box").append($img);
});
$("#act_menu3").click(function () {
$(".iframe_box").empty();
var $img = $('').attr("src", "http://jwacademy.cafe24.com/base_1/img/program/activity/consulting3.jpg").css({ height: "100%" }).css({ width: "1200px" }).css({ display: "block" }).css({ margin: "auto" })
$(".iframe_box").append($img);
});
$("#act_menu4").click(function () {
$(".iframe_box").empty();
var $img = $('').attr("src", "http://jwacademy.cafe24.com/base_1/img/program/activity/consulting4.jpg").css({ height: "100%" }).css({ width: "1200px" }).css({ display: "block" }).css({ margin: "auto" })
$(".iframe_box").append($img);
});
$("#act_menu5").click(function () {
$(".iframe_box").empty();
var $img = $('').attr("src", "http://jwacademy.cafe24.com/base_1/img/program/activity/consulting5.jpg").css({ height: "100%" }).css({ width: "1200px" }).css({ display: "block" }).css({ margin: "auto" }).css({ marginBottom: "30px" })
$(".iframe_box").append($img);
});
});
//App
$(function () {
$("#app_menu1").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Application1.php");
if (width_size <= 767) {
$("#menu_content").css({ height: "300px" });
} else {
$("#menu_content").css({ height: "700px" });
}
});
$("#app_menu2").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Application2.php");
if (width_size <= 767) {
$("#menu_content").css({ height: "300px" });
} else {
$("#menu_content").css({ height: "700px" });
}
});
$("#app_menu3").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Application3.php");
if (width_size <= 767) {
$("#menu_content").css({ height: "300px" });
} else {
$("#menu_content").css({ height: "700px" });
}
});
$("#app_menu4").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Application4.php");
if (width_size <= 767) {
$("#menu_content").css({ height: "300px" });
} else {
$("#menu_content").css({ height: "700px" });
}
});
$("#app_menu5").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Application5.php");
if (width_size <= 767) {
$("#menu_content").css({ height: "300px" });
} else {
$("#menu_content").css({ height: "700px" });
}
});
});
//¹ÝÀÀÇü Course ¸Þ´º Ŭ¸¯ ½Ã ³ôÀÌ Á¶Àý
$(window).resize(function () {
// width°ªÀ» °¡Á®¿À±â
var width_size = window.outerWidth;
// 800 ÀÌÇÏÀÎÁö if¹®À¸·Î È®ÀÎ
if (width_size <= 767) {
$("#cou_menu1").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Courses1.php");
$("#menu_content").css({ height: "3716px" });
});
$("#cou_menu2").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Courses2.php");
$("#menu_content").css({ height: "3716px" });
});
$("#cou_menu3_m").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Courses3.php");
$("#menu_content").css({ height: "3600px" });
});
$("#cou_menu4_m").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Courses4.php");
$("#menu_content").css({ height: "2205px" });
});
$("#cou_menu5_m").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Courses5.php");
$("#menu_content").css({ height: "2205px" });
});
$(".nav_menu1").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Courses1.php");
$("#menu_content").css({ height: "3716px" });
});
}
});
//¹ÝÀÀÇü Activity ¸Þ´º Ŭ¸¯ ½Ã ³ôÀÌ Á¶Àý
$(function () {
$("#act_menu1_m").click(function () {
$(".iframe_box").empty();
var $img = $('').attr("src", "http://jwacademy.cafe24.com/base_1/img/program/activity/consulting1.jpg").css({ height: "100%" })
$(".iframe_box").append($img);
var $img = $('').attr("src", "http://jwacademy.cafe24.com/base_1/img/program/activity/consulting1-2.jpg").css({ height: "100%" })
$(".iframe_box").append($img);
//$("#menu_content").css({ height: "3300px" });
});
$("#act_menu2_m").click(function () {
$(".iframe_box").empty();
var $img = $('').attr("src", "http://jwacademy.cafe24.com/base_1/img/program/activity/consulting2.jpg").css({ height: "100%" })
$(".iframe_box").append($img);
//$("#menu_content").css({ height: "850px" });
});
$("#act_menu3_m").click(function () {
$(".iframe_box").empty();
var $img = $('').attr("src", "http://jwacademy.cafe24.com/base_1/img/program/activity/consulting3.jpg").css({ height: "100%" })
$(".iframe_box").append($img);
//$("#menu_content").css({ height: "850px" });
});
$("#act_menu4_m").click(function () {
$(".iframe_box").empty();
var $img = $('').attr("src", "http://jwacademy.cafe24.com/base_1/img/program/activity/consulting4.jpg").css({ height: "100%" })
$(".iframe_box").append($img);
//$("#menu_content").css({ height: "850px" });
});
$("#act_menu5_m").click(function () {
$(".iframe_box").empty();
var $img = $('').attr("src", "http://jwacademy.cafe24.com/base_1/img/program/activity/consulting5.jpg").css({ height: "100%" }).css({ marginBottom: "16px" })
$(".iframe_box").append($img);
//$("#menu_content").css({ height: "850px" });
});
});
//¹ÝÀÀÇü Application ¸Þ´º Ŭ¸¯ ½Ã ³ôÀÌ Á¶Àý
$(window).resize(function () {
// width°ªÀ» °¡Á®¿À±â
var width_size = window.outerWidth;
// 800 ÀÌÇÏÀÎÁö if¹®À¸·Î È®ÀÎ
if (width_size <= 767) {
$("#app_menu1").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Application1.php");
$("#menu_content").css({ height: "300px" });
});
$("#app_menu2").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Application2.php");
$("#menu_content").css({ height: "300px" });
});
$("#app_menu3").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Application3.php");
$("#menu_content").css({ height: "300px" });
});
$("#app_menu4").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Application4.php");
$("#menu_content").css({ height: "300px" });
});
$("#app_menu5").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Application5.php");
$("#menu_content").css({ height: "300px" });
});
$(".nav_menu3").click(function () {
$("#menu_content").attr("src", "/base_1/jw/program/Application1.php");
$("#menu_content").css({ height: "300px" });
});
}
});
$(function () {
$(".top_scroll").on("click",function()
{
$("html,body").stop().animate({"scrollTop":106},1000);
});
})