Created
December 15, 2015 23:25
-
-
Save volkanozcan/995f69c44730a99980aa to your computer and use it in GitHub Desktop.
js:material_deneme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var names = ["Faxtop", "Nimflex", "Hay String", "Faxity", "U--Job", "Icelab", "Matis", "Lexilux", "U-tone", "Danstring", "Betalex", "Jaying", "Y-sailwarm", "Dentoflex", "Volt-Dex", "Uni Lotkix", "Medstring", "Zoomlax", "Bam Redfax", "Itin", "Whitetech", "Daltstock", "K-ing", "Saltstrong", "Fixtone", "Quadqvohome", "Trusthome", "Zone Bam", "Sanfan", "Geo Anla", "Toughtough", "Jay Flex", "Donkix", "Ding-Lab", "Villalax", "Reit", "Temptrax", "Mathstatstrong", "Tamphome", "K- Gofan", "Sumfresh", "Freefan", "Quotenix", "Ontotop", "Toneco", "Indigolux", "True Strong", "Salthold", "Blueranlight", "Operemla", "Zumdex", "Alpha-Com", "Unaeco", "Zonedox", "Tinlab", "Indigocom", "Unoplus", "Son Canit", "Medtone", "Hotphase", "Vento-Lab"]; | |
var animation_name = ["bounce", "flash", "pulse", "rubberBand", "shake", "headShake", "swing", "tada", "wobble", "jello", "bounceIn", "bounceInDown", "bounceInLeft", "bounceInRight", "bounceInUp", "bounceOut", "bounceOutDown", "bounceOutLeft", "bounceOutRight", "bounceOutUp", "fadeIn", "fadeInDown", "fadeInDownBig", "fadeInLeft", "fadeInLeftBig", "fadeInRight", "fadeInRightBig", "fadeInUp", "fadeInUpBig", "fadeOut", "fadeOutDown", "fadeOutDownBig", "fadeOutLeft", "fadeOutLeftBig", "fadeOutRight", "fadeOutRightBig", "fadeOutUp", "fadeOutUpBig", "flipInX", "flipInY", "flipOutX", "flipOutY", "lightSpeedIn", "lightSpeedOut", "rotateIn", "rotateInDownLeft", "rotateInDownRight", "rotateInUpLeft", "rotateInUpRight", "rotateOut", "rotateOutDownLeft", "rotateOutDownRight", "rotateOutUpLeft", "rotateOutUpRight", "hinge", "rollIn", "rollOut", "zoomIn", "zoomInDown", "zoomInLeft", "zoomInRight", "zoomInUp", "zoomOut", "zoomOutDown", "zoomOutLeft", "zoomOutRight", "zoomOutUp", "slideInDown", "slideInLeft", "slideInRight", "slideInUp", "slideOutDown", "slideOutLeft", "slideOutRight", "slideOutUp"]; | |
var icon_array = ["3d_rotation", "accessibility", "accessible", "account_balance", "account_balance_wallet", "account_box", "account_circle", "add_shopping_cart", "alarm", "alarm_add", "alarm_off", "alarm_on", "all_out", "android", "announcement", "aspect_ratio", "assessment", "assignment", "assignment_ind", "assignment_late", "assignment_return", "assignment_returned", "assignment_turned_in", "autorenew", "backup", "book", "bookmark", "bookmark_border", "bug_report", "build", "cached", "camera_enhance", "card_giftcard", "card_membership", "card_travel", "change_history", "check_circle", "chrome_reader_mode", "class", "code", "compare_arrows", "copyright", "credit_card", "dashboard", "date_range", "delete", "description", "dns", "done", "done_all", "donut_large", "donut_small", "eject", "event", "event_seat", "exit_to_app", "explore", "extension", "face", "favorite", "favorite_border", "feedback", "find_in_page", "find_replace", "fingerprint", "flight_land", "flight_takeoff", "flip_to_back", "flip_to_front", "gavel", "get_app", "gif", "grade", "group_work", "help", "help_outline", "highlight_off", "history", "home", "hourglass_empty", "hourglass_full", "http", "https", "important_devices", "info", "info_outline", "input", "invert_colors", "label", "label_outline", "language", "launch", "lightbulb_outline", "line_style", "line_weight", "list", "lock", "lock_open", "lock_outline", "loyalty", "markunread_mailbox", "motorcycle", "note_add", "offline_pin", "opacity", "open_in_browser", "open_in_new", "open_with", "pageview", "pan_tool", "payment", "perm_camera_mic", "perm_contact_calendar", "perm_data_setting", "perm_device_information", "perm_identity", "perm_media", "perm_phone_msg", "perm_scan_wifi", "pets", "picture_in_picture", "picture_in_picture_alt", "play_for_work", "polymer", "power_settings_new", "pregnant_woman", "print", "query_builder", "question_answer", "receipt", "record_voice_over", "redeem", "reorder", "report_problem", "restore", "room", "rounded_corner", "rowing", "schedule", "search", "settings", "settings_applications", "settings_backup_restore", "settings_bluetooth"] | |
var array = []; | |
var toplam = 0; | |
$(".material-icons").each(function() { | |
var icon_isimi = icon_array[~~(Math.random() * icon_array.length)]; | |
$(this).text(icon_isimi); | |
$(this).parent().parent().find(".panel-footer").text(icon_isimi); | |
}); | |
$(".kafa").each(function() { | |
$(this).text(names[~~(Math.random() * names.length)]); | |
}); | |
$(".material-icons").click(function() { | |
var test_text = $(this).text(); | |
$(".modal-text").text(test_text); | |
$("h1").text(test_text); | |
//$(".modal").modal("toggle"); | |
}) | |
var test = (function() { | |
console.log("olduu") | |
})(); | |
$(".fiyat").each(function() { | |
$(this).text(~~(Math.random() * 1000)); | |
}); | |
$(".kafa ,.govde").on("click", function() { | |
var neki = "animated " + (animation_name[~~(Math.random() * animation_name.length)]); | |
console.log(neki); | |
$(this).parent().addClass("animated rubberBand").one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function() { | |
$(this).removeClass("animated rubberBand"); | |
}); | |
}); | |
$(".ekle").click(function() { | |
var fiyat = $(this).parent().find(".fiyat").text(); | |
var urun = $(this).parent().parent().find(".kafa").text(); | |
array.push({ | |
urun: urun, | |
fiyat: fiyat | |
}); | |
$("#liste").append("<tr><td>" + urun + "</td><td>" + fiyat + "</td><td><i class=\"material-icons pull-right remove\">remove_circle_outline</i></td></tr>"); | |
$("#myModal").modal("toggle"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment